From 4bfdaa25659595b4087fab8cbe087def68cfc488 Mon Sep 17 00:00:00 2001 From: zbeyens Date: Mon, 15 Apr 2024 13:08:32 +0200 Subject: [PATCH] use client --- .changeset/spotty-cameras-watch.md | 5 +++++ packages/jotai-x/src/createAtomProvider.tsx | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/spotty-cameras-watch.md 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';