diff --git a/src/index.ts b/src/index.ts index 4dc347b..e770323 100644 --- a/src/index.ts +++ b/src/index.ts @@ -44,8 +44,8 @@ export const recoilPersist = ( } } - onSet(async (newValue) => { - const state = await getState() + onSet((newValue) => { + const state = getState() if ( newValue !== null && newValue !== undefined &&