Is there a way to access stores outside React Components?
Opened this issue · 1 comments
LyunKi commented
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 commented
This's a good question but unfortunately such a method is not provided yet. We'll consider about it later.