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

FEAT: option to not subscribe to specific form states #212

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

HugoPerard
Copy link
Member

@HugoPerard HugoPerard commented Jan 9, 2024

Goal

The idea is to have a solution to choose to not subscribe to a state of a useForm or useFormContext to offer possibilities to optimise application performances

Solution

An option stateSubscription that allows to select returned states or to exclude some, that will "filter" useForm and useFormContext return value, excluding specified states.

Result

Previous

image

Now

code result
image image
image image

@HugoPerard HugoPerard requested a review from ivan-dalmet January 9, 2024 11:30
Copy link

vercel bot commented Jan 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
formiz-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 9, 2024 1:52pm
formiz-examples ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 9, 2024 1:52pm

@HugoPerard HugoPerard force-pushed the feat/not-subscribed-form-state branch from 9b357a0 to 2af134f Compare January 9, 2024 13:50
@HugoPerard HugoPerard merged commit f88db3f into master Jan 9, 2024
2 checks passed
@HugoPerard HugoPerard deleted the feat/not-subscribed-form-state branch January 9, 2024 16:34
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