-
|
Hello, previous version had devtools |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
|
Is it type only issue? |
Beta Was this translation helpful? Give feedback.
-
|
This was a typing regression introduced in v5.0.11. The PR #3362 tightened the
The fix landed in v5.0.12 with PR #3414, which correctly extends the Redux DevTools So upgrading should restore it: npm install zustand@latest
# or
pnpm add zustand@latestAfter upgrading to v5.0.12+, const useStore = create(
devtools(
(set) => ({ /* your state */ }),
{
name: 'myStore',
stateSanitizer: (state) => ({
...state,
largeData: '<<OMITTED>>',
}),
}
)
)To answer @dai-shi's question too — yes, it was a type-only regression, not a runtime behavior change. |
Beta Was this translation helpful? Give feedback.
While creating reproduction, I found out that I was wrong.
False alarm.
Everything work fine. My apologies. v5.0.12 is good.
This discussion can be closed.