redux-micro-frontend icon indicating copy to clipboard operation
redux-micro-frontend copied to clipboard

add option to get-or-set a store instance

Open rotty3000 opened this issue 3 years ago • 5 comments

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?

rotty3000 avatar Mar 10 '21 14:03 rotty3000

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.

patrickCode avatar Mar 11 '21 21:03 patrickCode

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 avatar Mar 11 '21 21:03 patrickCode

@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 :)

rotty3000 avatar Mar 12 '21 04:03 rotty3000

Did you try the debug option? Did that work for you?

patrickCode avatar Mar 30 '21 04:03 patrickCode

I've had mixed success. I've not had time to really dig into why.

rotty3000 avatar Mar 30 '21 14:03 rotty3000