Skip to content
New issue

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

Use key to ensure SendTask is rerendered when content changes #93

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

clarsen
Copy link

@clarsen clarsen commented Oct 28, 2024

The useForm hook in SendTask is not rerendered when content changes.

This results in the useForm defaultValue for all subsequent renders having the values of the first block that was selected, resulting in the same task title being sent to the server each time.

The useForm hook in SendTask is not rerendered when content changes.

This results in defaultValue having the values of
the first block that was selected, resulting in
the same task title being sent to the server each
time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant