Skip to content

Commit

Permalink
chore(web): fix caching issue where viz state is remembered (#922)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaWaite authored Mar 21, 2024
1 parent d8a1c4b commit 404eda1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions web/src/beta/pages/EditorPage/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Provider as StateProvider } from "jotai";
import { useParams } from "react-router-dom";

import NotFound from "@reearth/beta/components/NotFound";
Expand All @@ -13,10 +14,12 @@ const EditorPage: React.FC<Props> = () => {
return !sceneId || !tab || !isTab(tab) ? (
<NotFound />
) : (
<Page
sceneId={sceneId}
renderItem={props => <Editor tab={tab} sceneId={sceneId} {...props} />}
/>
<StateProvider>
<Page
sceneId={sceneId}
renderItem={props => <Editor tab={tab} sceneId={sceneId} {...props} />}
/>
</StateProvider>
);
};

Expand Down

0 comments on commit 404eda1

Please sign in to comment.