Skip to content

Commit 797504a

Browse files
committed
fix: Update sync on watched keys change
1 parent 149c619 commit 797504a

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
@@ -101,7 +101,7 @@ export function createReactRouterBasedAdapter(
101101
emitter.off('update', onEmitterUpdate)
102102
window.removeEventListener('popstate', onPopState)
103103
}
104-
}, [])
104+
}, [watchKeys.join('&')])
105105
return searchParams
106106
}
107107
/**

0 commit comments

Comments
 (0)