Open wongk opened 7 months ago
I am using the useUpdateSearchParams API to set a query parameter on the route. It is working fine on web.
useUpdateSearchParams
const updateParams = useUpdateSearchParams() updateParams({ threadId: item.id }, { webBehavior: "replace" })
This does not work on mobile. The following log statement is always empty:
const params = useSearchParams() useEffect(() => { console.info(`Params: ${params?.toString()}`) }, [params])
No response
- Solito: 4.2.2 - Next.js: 13.5.6 - Expo: 50.0.14 - React Native: 0.73.6
As a workaround, manually setting the query param works fine for my use case: router.replace(``/chat?threadId=${item.id}``)
router.replace(``/chat?threadId=${item.id}``)
Is there an existing issue for this?
Do you want this issue prioritized?
Current Behavior
I am using the
useUpdateSearchParams
API to set a query parameter on the route. It is working fine on web.This does not work on mobile. The following log statement is always empty:
Expected Behavior
No response
Steps To Reproduce
No response
Versions
Screenshots
No response
Reproduction
No response