jotaijs / jotai-devtools

A powerful toolkit to enhance your development experience with Jotai
https://jotai.org/docs/tools/devtools
MIT License
134 stars 33 forks source link

docs error or missed? #161

Closed bigbossx closed 2 months ago

bigbossx commented 2 months ago
image image

Just wonder if jotai v1 is really supported or the README is legacy.

In fact, starting from jotai-devtools v0.2, useAtomsSnapshot can no longer get the correct value with jotai v1.13. snapshot is empty.

If I use jotai 1.13 + jotai-devtool 0.10.1 (latest), it will also throw an error that useStore is not exported in jotai when vite compile.

So I think that since 0.1.0, devtool does not support jotai v1 at all.

please correct me if I wrong. I want to use DevTool in jotai v1. but nothing can work with jotai v1 actually

arjunvegda commented 2 months ago

Thanks for reporting this @bigbossx! You're right, the docs are outdated, we dropped support for Jotai V1 recently.

The minimum required version for Jotai now is 2.1.0. Would you like to open up a PR to update the docs?

bigbossx commented 2 months ago

OK, pr WIP~