Skip to content

Commit f7da564

Browse files
committed
fix: Update sync on watched keys change
1 parent 71ce607 commit f7da564

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export function createReactRouterBasedAdapter({
123123
emitter.off('update', onEmitterUpdate)
124124
window.removeEventListener('popstate', onPopState)
125125
}
126-
}, [])
126+
}, [watchKeys.join('&')])
127127
return searchParams
128128
}
129129
/**

0 commit comments

Comments
 (0)