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

add option to get-or-set a store instance #11

Open
rotty3000 opened this issue Mar 10, 2021 · 5 comments
Open

add option to get-or-set a store instance #11

rotty3000 opened this issue Mar 10, 2021 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@rotty3000
Copy link
Contributor

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?

@patrickCode
Copy link
Contributor

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
Copy link
Contributor

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 patrickCode self-assigned this Mar 11, 2021
@patrickCode patrickCode added the enhancement New feature or request label Mar 11, 2021
@rotty3000
Copy link
Contributor Author

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

@patrickCode
Copy link
Contributor

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

@rotty3000
Copy link
Contributor Author

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

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