BearStudio / formiz

🐜 React forms with ease! Composable, headless & with built-in multi steps
https://formiz-react.com/
MIT License
390 stars 50 forks source link

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

Closed HugoPerard closed 8 months ago

HugoPerard commented 8 months ago

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
vercel[bot] commented 8 months ago

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