We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
目前 query-string 的嵌套得这么写 nesting,有点麻烦啊;能不能考虑改成使用 qs ?
The text was updated successfully, but these errors were encountered:
query-string 换成 qs 是个破坏性更改,parseOptions, stringifyOptions 配置项将变得不一样。可以考虑提供个参数,允许用户指定内部使用的 parse, stringify 函数,这样不会引入破坏性更改,比如:
parseOptions, stringifyOptions
parse, stringify
import qs from 'qs'; const [state, setState] = useUrlState( { ids: ['1', '2', '3'] }, { parse: qs.parse, stringify: qs.stringify, }, );
cc @hchlq 你觉着呢?
Sorry, something went wrong.
感觉可以,自定义 parse 和 stringify,不过 v4 可以做更改
query-string 换成 qs 是个破坏性更改,parseOptions, stringifyOptions 配置项将变得不一样。可以考虑提供个参数,允许用户指定内部使用的 parse, stringify 函数,这样不会引入破坏性更改,比如: import qs from 'qs'; const [state, setState] = useUrlState( { ids: ['1', '2', '3'] }, { parse: qs.parse, stringify: qs.stringify, }, ); cc @hchlq 你觉着呢?
@liuyib 期待这个功能,同样遇到了嵌套对象问题
No branches or pull requests
目前 query-string 的嵌套得这么写 nesting,有点麻烦啊;能不能考虑改成使用 qs ?
The text was updated successfully, but these errors were encountered: