You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After saving my form data in local storage and refreshing the page, my form renders with the correct values but I get the following warning, although I'm using a dummy storage object like suggested in the readme: Warning: Prop 'aria-valuenow' did not match. Server: "10000" Client: "11000".
Here is the relevant part of my code:
constdummyStorage={getItem: ()=>null,setItem: ()=>{},removeItem: ()=>{},};exportdefaultfunctioncreateClient(){const[formInitialValues,setFormInitialValues,writeErrors]=useStorageState(typeofwindow!=="undefined" ? localStorage : dummyStorage,"awaji",{lastName: "",firstName: "",gender: "male",dateOfBirth: "",initialCredit: 10000,});constonSubmit=useCallback((values,actions)=>{console.log(values);setFormInitialValues(values);},[]);// rest of the code...
Any way to properly fix this ?
The text was updated successfully, but these errors were encountered:
I'm using Next.js with SSR.
After saving my form data in local storage and refreshing the page, my form renders with the correct values but I get the following warning, although I'm using a dummy storage object like suggested in the readme:
Warning: Prop 'aria-valuenow' did not match. Server: "10000" Client: "11000"
.Here is the relevant part of my code:
Any way to properly fix this ?
The text was updated successfully, but these errors were encountered: