Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunvegda committed Feb 1, 2025
1 parent 869508c commit 6f64e44
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-watch-typeahead": "^2.2.2",
"jotai": "^2.9.1",
"jotai": "^2.11.3",
"jotai-tanstack-query": "^0.7.2",
"lint-staged": "^15.3.0",
"postcss": "^8.4.49",
Expand Down
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions src/DevTools/internal-jotai-store.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { createContext, useContext } from 'react';
import { createStore } from 'jotai/vanilla';
import { Store } from 'src/types';
import type { Store } from 'src/types';

// Don't use this directly in your components
// use `useDevtoolsJotaiStoreOptions` instead
export const internalJotaiStore = createStore();
export const InternalDevToolsContext = createContext<Store | undefined>(
undefined,
);
Expand Down
5 changes: 4 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { useStore } from 'jotai/react';
import type { Atom, WritableAtom, createStore } from 'jotai/vanilla';
import { INTERNAL_DevStoreRev4, INTERNAL_PrdStore } from 'jotai/vanilla/store';
import type {
INTERNAL_DevStoreRev4,
INTERNAL_PrdStore,
} from 'jotai/vanilla/store';

export type StoreWithoutDevMethods = ReturnType<typeof createStore>;
export type StoreWithDevMethods = INTERNAL_DevStoreRev4 & INTERNAL_PrdStore;
Expand Down

0 comments on commit 6f64e44

Please sign in to comment.