intendednull / yewdux

Ergonomic state management for Yew applications
https://intendednull.github.io/yewdux/
Apache License 2.0
322 stars 31 forks source link

Fix Checkbox not supporting persistence #46

Closed nmlt closed 1 year ago

nmlt commented 1 year ago

When using #[store(storage = "local")] with the Checkbox type the build fails because it does not support serialization.

To check whether it works I just quickly changed the input example and added the #[store] macro, which worked with trunk. I didn't actually check whether persistence worked.

I chose the exact same version/featureset of serde as yewdux itself depends on, hope that is a good idea.

intendednull commented 1 year ago

Looks great, thanks!