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

Set or Change prefix after the app has already been initialized #115

Open
thenewbeat opened this issue Jul 18, 2019 · 1 comment
Open

Set or Change prefix after the app has already been initialized #115

thenewbeat opened this issue Jul 18, 2019 · 1 comment

Comments

@thenewbeat
Copy link

Within my app I need to set a custom prefix. I'm doing this per the docs in AppModule. Unfortunately, I need to change this prefix based on data coming from a Service call made after the app has started.

I'd like to see a method for setting, or updating a prefix after the app has been initialized.

@ghost
Copy link

ghost commented May 16, 2020

There is a static class called StorageKeyManager. internally all the configuration from forRoot, gets there. you could use setPrefix method of this class and change prefix dynamically, but it's not official API, so I can't be sure that it will not change

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