ayanami icon indicating copy to clipboard operation
ayanami copied to clipboard

Is there a way to access stores outside React Components?

Open LyunKi opened this issue 6 years ago • 1 comments

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?

LyunKi avatar Feb 05 '20 09:02 LyunKi

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

forehalo avatar Feb 06 '20 05:02 forehalo