We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 125f637 commit 3f9010eCopy full SHA for 3f9010e
src/index/serialize.ts
@@ -1,4 +1,4 @@
1
import type { Key } from '../_internal'
2
-import { serialize } from '../_internal'
+import { serialize } from '../_internal/utils/serialize'
3
4
export const unstable_serialize = (key: Key) => serialize(key)[0]
src/infinite/serialize.ts
@@ -1,5 +1,6 @@
import type { SWRInfiniteKeyLoader } from './types'
-import { serialize, INFINITE_PREFIX } from '../_internal'
+import { INFINITE_PREFIX } from '../_internal/constants'
5
export const getFirstPageKey = (getKey: SWRInfiniteKeyLoader) => {
6
return serialize(getKey ? getKey(0, null) : null)[0]
0 commit comments