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

Is there a way to access stores outside React Components? #184

Open
LyunKi opened this issue Feb 5, 2020 · 1 comment
Open

Is there a way to access stores outside React Components? #184

LyunKi opened this issue Feb 5, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@LyunKi
Copy link

LyunKi commented Feb 5, 2020

I want to store some state (for example i18n info) into ayanami modules so that I can get feedback immediately I change the language;
However, I also need to use current i18n info to do sth for example toast some messages. But I am not sure is there a way to access the info stored in the ayanami modules outside React Components just like a getStores function in redux?

@forehalo
Copy link
Contributor

forehalo commented Feb 6, 2020

This's a good question but unfortunately such a method is not provided yet. We'll consider about it later.

@forehalo forehalo added the enhancement New feature or request label Feb 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants