Skip to content

Commit 1c15f13

Browse files
committed
fix: Update sync on watched keys change
1 parent 403300c commit 1c15f13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nuqs/src/adapters/lib/react-router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export function createReactRouterBasedAdapter(
104104
emitter.off('update', onEmitterUpdate)
105105
window.removeEventListener('popstate', onPopState)
106106
}
107-
}, [])
107+
}, [watchKeys.join('&')])
108108
return searchParams
109109
}
110110
/**

0 commit comments

Comments
 (0)