Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

options.bindingGlobals can't be changed at runtime #166

Open
danieldickison opened this issue Jan 18, 2022 · 0 comments
Open

options.bindingGlobals can't be changed at runtime #166

danieldickison opened this issue Jan 18, 2022 · 0 comments

Comments

@danieldickison
Copy link
Collaborator

When using the prebuild knockout or reference builds, because the tko binding provider encapsulates the global options that were set when it was built, setting options.bindingGlobals has no effect. We currently work around this by doing:

ko.options.bindingGlobals = {...};
ko.bindingProvider.setGlobals(ko.options.bindingGlobals);

I'm not sure it's really necessary to change this behavior, but it might be good to spell out which of the options are evaluated at build-time vs runtime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant