|
I tried Press the "Set Data" button. All states should update to the hard coded object. However, if the page refresh button is pressed, all yup state is set to Screencast.from.24-01-25.10.58.07.webm |
Answered by
franky47
Jan 24, 2025
Replies: 1 comment
|
I see, from looking at the Yup const [yupValidateSync, setYupValidateSync] = useQueryState(
'yupValidateSync',
parseAsJson(yupSchema.validateSync.bind(yupSchema))
)Note that |
0 replies
Answer selected by
JSFTI
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I see, from looking at the Yup
validateSynccode, it needs binding to the schema instance to keep thethisreference:Note that
yupSchema.validatewill not work as it returns a Promise (and nuqs parsers are synchronous).