-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feat(configureStore): add support for devTools
option accepting EnhancerOptions
#130
Conversation
Going through and adding doc changes next, just wanted to get CI running to see how the code is looking. |
Deploy preview for redux-starter-kit-docs ready! Built with commit f8ce132 https://deploy-preview-130--redux-starter-kit-docs.netlify.com |
src/configureStore.ts
Outdated
// https://github.com/zalmoxisus/redux-devtools-extension/pull/624 | ||
trace: !IS_PRODUCTION | ||
trace: !IS_PRODUCTION, | ||
...typeof devTools === 'object' && devTools, |
There was a problem hiding this comment.
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.
f12c908
to
182ca50
Compare
There was a problem hiding this 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. 😄
docs/api/configureStore.md
Outdated
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. |
There was a problem hiding this comment.
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.
@markerikson ready for review here, pushed up the last of my changes. |
68a6210
to
9e80566
Compare
…hancerOptions` 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 reduxjs#40
28cabab
to
f8ce132
Compare
Awright, rebased against master after merging a couple other PRs, and looks good. Thanks! |
* 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>
This is adding the code support for passing in
EnhancerOptions
fromredux-devtools-extension
for further customization.https://github.com/zalmoxisus/redux-devtools-extension/blob/master/docs/API/Arguments.md#windowdevtoolsextensionconfig
fix #40