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

feat(configureStore): add support for devTools option accepting EnhancerOptions #130

Merged
merged 6 commits into from
Apr 28, 2019

Conversation

wldcordeiro
Copy link
Contributor

This is adding the code support for passing in EnhancerOptions from redux-devtools-extension for further customization.

https://github.com/zalmoxisus/redux-devtools-extension/blob/master/docs/API/Arguments.md#windowdevtoolsextensionconfig

fix #40

@wldcordeiro
Copy link
Contributor Author

Going through and adding doc changes next, just wanted to get CI running to see how the code is looking.

@netlify
Copy link

netlify bot commented Apr 6, 2019

Deploy preview for redux-starter-kit-docs ready!

Built with commit f8ce132

https://deploy-preview-130--redux-starter-kit-docs.netlify.com

// https://github.com/zalmoxisus/redux-devtools-extension/pull/624
trace: !IS_PRODUCTION
trace: !IS_PRODUCTION,
...typeof devTools === 'object' && devTools,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps I can do this in a different way? I played with a couple different ways, this just seemed terse and retained behavior.

Copy link
Contributor Author

@wldcordeiro wldcordeiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments around, I can make changes as needed too. 😄

package.json Show resolved Hide resolved
A boolean indicating whether `configureStore` should automatically enable support for [the Redux DevTools browser extension](https://github.com/zalmoxisus/redux-devtools-extension).
If this is a boolean, it will be used to indicate whether `configureStore` should automatically enable support for [the Redux DevTools browser extension](https://github.com/zalmoxisus/redux-devtools-extension).

If it is an object of `redux-devtools-extension` [`EnhancerOptions`](https://github.com/zalmoxisus/redux-devtools-extension/blob/master/docs/API/Arguments.md#windowdevtoolsextensionconfig), `configureStore` will use the user provided configuration options.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I kept your note about the trace option below but this option description maybe read a little awkwardly. I wasn't sure how to best update.

@wldcordeiro
Copy link
Contributor Author

@markerikson ready for review here, pushed up the last of my changes.

@markerikson
Copy link
Collaborator

Awright, rebased against master after merging a couple other PRs, and looks good. Thanks!

@markerikson markerikson merged commit ad0c248 into reduxjs:master Apr 28, 2019
@wldcordeiro wldcordeiro deleted the configurable-devtools branch April 29, 2019 19:40
markerikson pushed a commit that referenced this pull request Apr 20, 2021
* add onStart onError onSuccess hooks to query

* code review
rename original type QueryApi to BaseQueryApi, move to baseQueryTypes
introduce new type QueryApi to endpointDefinitions
add `await` both at query&mutationThunk `return` property

* also run tests on pull requests

* Remove signal from QueryApi, add endpoint desc to queries documentation

* Update types, add basic lifecycle method tests

Co-authored-by: Lenz Weber <mail@lenzw.de>
Co-authored-by: Matt Sutkowski <msutkowski@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

allow configuration of devtools via configureStore
2 participants