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
const DayWrite = ({ languages }) => {
const {
control,
formState: { errors },
handleSubmit,
reset,
watch,
} = useForm({ defaultValues });
const {
fields,
append,
remove: fieldRemove,
} = useFieldArray({
control,
name: "day",
});
console.log(fields[0].id}
}
and then
The two results are different
server console result id ! == client console result id
Warning: Prop data-node-key did not match. Server: "6182887d-0f0c-4dc4-81e7-daff4c19aaa8" Client: "c3af173c-cf8e-4d90-bdb1-84b4df4c5967"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
i use useform + useFieldArray + next 13
Warning: Prop
data-node-key
did not match. Server: "6182887d-0f0c-4dc4-81e7-daff4c19aaa8" Client: "c3af173c-cf8e-4d90-bdb1-84b4df4c5967""use client"
const defaultValues = {
day: [{ test22: [{ test: [{}] }] }],
};
const DayWrite = ({ languages }) => {
const {
control,
formState: { errors },
handleSubmit,
reset,
watch,
} = useForm({ defaultValues });
const {
fields,
append,
remove: fieldRemove,
} = useFieldArray({
control,
name: "day",
});
console.log(fields[0].id}
}
and then
The two results are different
server console result id ! == client console result id
Warning: Prop
data-node-key
did not match. Server: "6182887d-0f0c-4dc4-81e7-daff4c19aaa8" Client: "c3af173c-cf8e-4d90-bdb1-84b4df4c5967"how can i resolve this ..?
Beta Was this translation helpful? Give feedback.
All reactions