Skip to content
Discussion options

You must be logged in to vote

Hmmm, I am not sure what you are running into, but fields.something.value is reactive and should reflect with the latest value.

But we do plan to remove it in v2, so a future proof solution would be using the new useFormData hook:

import { useFormData } from '@conform-to/react/future';

const value = useFormData(formRef, formData => formData?.get(fields.something.name));

The form ref could be the form id or a react ref of any form related elements. See the docs for more details.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vsnig
Comment options

Answer selected by vsnig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants