question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Removing the ability to create a Redux store directly from the extension

See original GitHub issue

It is possible to create a Redux store directly with the extension (without importing Redux in your app) when you need it for debugging only. It’s not about the store enhancer or compose helper as it’s usually applied. See the docs, the example and the blog post for more details. That was introduces for more than 2 years, but doesn’t seem anybody using it. Now with React hooks, that example wouldn’t make much sense. One can move that inside an integration including redux for development only, like reinspect does.

The suggestion is to remove that part in next major release. I’ll add a deprecation waring in the next minor version.

If you’re using it, please let me know about your use case.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
CharlesStovercommented, Apr 9, 2019

If this is still an issue, I am in the process of adding ReactN’s global state to Redux DevTools. Since ReactN does not use a Redux store, it is not possible to pass an existing one. Having the DevTools fallback to making one would be beneficial, such that the dependency lies in the extension instead of in my package. It is detrimental to my users to have them include Redux in their bundle just so that one of their developer tools can show them a store.

Without this feature, I am left having to make my own minimalist implementation of a store so as not to include Redux in my bundle. It’s been a burden to create, and will continue to be a burden to maintain. This would be alleviated if Redux DevTools made the store on its end.

As is, I’m currently afraid to rely on Redux DevTools creating the store, given this Issue and the comment about its deprecation(?).

But this is my use case. I do not want to maintain a Redux store, but I do want to display a non-Redux store to my users.

1reaction
nik72619ccommented, Oct 4, 2019

anybody working on this issue ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to exclude / disable Redux devtools in production build ...
For hiding the Redux from devtools pay attention to the following code: import { createStore, applyMiddleware, compose } from 'redux'; ...
Read more >
Redux Fundamentals, Part 4: Store
The official Redux Fundamentals tutorial: learn how to create and use a Redux store.
Read more >
How to Disable Redux DevTools in Production
Solution: Bootstrap the Redux store. As said before, make sure to install the redux-devtools-extension package from npm. Remember, it may look ...
Read more >
zalmoxisus/redux-devtools-extension - GitHub
1.3 Use redux-devtools-extension package from npm ... and to use like so: import { createStore, applyMiddleware } from 'redux'; import { composeWithDevTools } ......
Read more >
Redux DevTools: Tips and tricks for faster debugging
Redux is one of the most adopted state management libraries for large scale React applications. Besides its ability to make your application ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found