Open WKampel opened 17 hours ago
What's your version of nuqs?
nuqs
^1.17.4
What framework are you using?
Which version of your framework are you using?
14.1.3
New lines (such as using a textarea) are being filtered out.
const [test, setTest] = useQueryState('test', parseAsString) <textarea value={test ?? ''} onChange={(e) => { setTest(e.target.value) }} />
Sounds like the issue could come from the URL encoding not properly taking care of invisible characters (0-31 ASCII range). Would you like to open a PR?
https://github.com/47ng/nuqs/blob/a504e0ebbca5111b2f7b3039fa7387cca67f0349/packages/nuqs/src/url-encoding.ts#L25-L45
Context
What's your version of
nuqs
?What framework are you using?
Which version of your framework are you using?
Description
New lines (such as using a textarea) are being filtered out.
Reproduction