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

DevTools' persist state #8

Closed
zalmoxisus opened this issue Oct 30, 2015 · 2 comments
Closed

DevTools' persist state #8

zalmoxisus opened this issue Oct 30, 2015 · 2 comments

Comments

@zalmoxisus
Copy link
Owner

Implemented DevTools' persistState in f99e203.

Not in WebStore so far. To test it, clone the repository, run npm i & npm run build:extension and load the extension's folder ./build/extension.

As usually, add ?debug_session=<session_name> to the url.

It would be better to create sessions directly from the dev panel, and also to select from the existent sessions.

zalmoxisus added a commit that referenced this issue Oct 30, 2015
@ohana54
Copy link

ohana54 commented Oct 30, 2015

What about custom serialize/deserialize functions?
Do you have any creative idea how to supply the custom functions as "configuration"?
I would be happy to help with development but I don't know where to start.

BTW, this chrome extension is the best thing ever!! Really awesome!

@zalmoxisus
Copy link
Owner Author

Thanks, @ohana54, for your kind words.

Could you please provide more information about your user case, where you need custom serialize/deserialize functions?

I guess your custom function should be added as a middleware or as a store enhancement. You may add more store enhancements as usually in your configureStore before window.devToolsExtension:

const finalCreateStore = compose(
  applyMiddleware(thunk),
  ...
  window.devToolsExtension || (f => f)
)(createStore);

If you want to add some store enhancements directly to the extension (for example not to repeat for every application), you may add them in ./src/app/store/configStore.

I made it really easy to customize, everything is in .src/app and src/browser/extension.

Build it with npm i & npm run build:extension and load the extension's folder ./build/extension; or run it in dev mode with npm i & npm start and load the extension's folder ./dev.

PRs are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants