redux-micro-frontend
redux-micro-frontend copied to clipboard
add option to get-or-set a store instance
Is your feature request related to a problem? Please describe. I'm having a hard time integrating redux-developer tools. I can do it, but it's not elegant. In doing so I find that we have to forgo the get-or-set behaviour of the GlobalStore.
Ideas?
I started with GlobalStore.Get().CreateStore(...)
which behaves as get-or-set
like I wish however it does not allow me to use the enhancer
parameter of Redux.createStore
which means I cannot easily apply the redex developer tools plugin (which is wired via enhancer function) while preserving the get-or-set approach.
Describe the solution you'd like I would like to apply the redux developer tools plugin to stores via the get-or-set methods of the globalStore.
Describe alternatives you've considered I've directly create stores that use the plugin and wired them into the global store. This works just fine but I can't do the same with the GlobalStore.CreateStore
(it's quite possible I'm just not knowledgable enough to do it.)
PS: is there a forum or mail list for this project for usability questions?
Have you tried setting GlobalStore.DebugMode=true
, and then create the store. When the DebugMode is set to true
we will attach the redux-developer-tool automatically.
If that doesn't work for you, then I will take a look into it and see if I can provide a get-or-set experience.
Also about discussion forum, I have just enabled GitHub Discussions (look for the Discussions tab on the headers). All discussions related to usability shall be discussed there.
@patrickCode I will try to debug option. I had noticed that sometimes redux developer tools could see the store and other times not but I had not correlated this to debug mode. thx! :)
About adding the GitHub discussions thanks for that too :)
Did you try the debug option? Did that work for you?
I've had mixed success. I've not had time to really dig into why.