Skip to content

Commit 639f8c7

Browse files
committedFeb 13, 2025
doc: Update NUQS-404 to point to NUQS-303
1 parent c08de55 commit 639f8c7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
 

‎errors/NUQS-404.md

+15
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,18 @@ If you encounter this error outside of the browser, like in a test
2727
runner (eg: Vitest or Jest), you may use the [testing adapter](https://nuqs.47ng.com/docs/testing)
2828
from `nuqs/adapters/testing` to mock the initial search params and access
2929
setup/assertion testing facilities.
30+
31+
### Monorepo setups
32+
33+
This error can also occur in monorepo setups where components using nuqs hooks
34+
are in different packages resolving to different `nuqs` versions,
35+
leading to different context references being used.
36+
37+
If you [enable debugging](https://nuqs.47ng.com/docs/debugging), you might see a
38+
[`NUQS-303 - Multiple adapter contexts detected`](./NUQS-303) error, confirming
39+
this hypothesis.
40+
41+
For additional clarification, ensure that all packages use compatible versions
42+
of `nuqs` to prevent this issue from arising. See issue
43+
[#798](https://github.com/your-repo/issues/798) for more details and
44+
possible solutions.

0 commit comments

Comments
 (0)