diff --git a/.changeset/spotty-cameras-watch.md b/.changeset/spotty-cameras-watch.md new file mode 100644 index 0000000..36b9ee7 --- /dev/null +++ b/.changeset/spotty-cameras-watch.md @@ -0,0 +1,5 @@ +--- +'jotai-x': patch +--- + +use client in createAtomProvider diff --git a/packages/jotai-x/src/createAtomProvider.tsx b/packages/jotai-x/src/createAtomProvider.tsx index 70ae863..20b8e8a 100644 --- a/packages/jotai-x/src/createAtomProvider.tsx +++ b/packages/jotai-x/src/createAtomProvider.tsx @@ -1,3 +1,5 @@ +'use client'; + import React from 'react'; import { createStore } from 'jotai/vanilla';