Wording of devtools docs is misleading about @redux-devtools/extension being required #3313
Unanswered
VladislavVovk
asked this question in
Bug report
Replies: 1 comment
-
|
The devtools middleware use import type {} from '@redux-devtools/extension'
import type {
StateCreator,
StoreApi,
StoreMutatorIdentifier,
} from '../vanilla.ts'
type Config = Parameters<
(Window extends { __REDUX_DEVTOOLS_EXTENSION__?: infer T }
? T
: { connect: (param: any) => any })['connect']
>[0] |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Bug Description
On the devtools middleware docs page there is an “Important” note that says something like:
In order to use devtools from zustand/middleware you need to install @redux-devtools/extension library.This wording is a bit misleading, because in practice the devtools middleware works fine without installing the
@redux-devtools/extensionpackage, as long as the Redux DevTools browser extension is installed. The package is only needed for advanced configuration/usage, not for basic usage.As a result, the current phrasing feels like it is a hard requirement, while in reality it is optional for most use cases.
Would you consider rephrasing this note to something like:
This would make the docs clearer and avoid confusion for new users who think they must install the NPM package for devtools to work at all.
Thanks!
Reproduction Link
https://zustand.docs.pmnd.rs/middlewares/devtools
Beta Was this translation helpful? Give feedback.
All reactions