intendednull / yewdux

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

Confusing regarding multi-component reducer example #18

Closed Foorack closed 2 years ago

Foorack commented 2 years ago

Trying to implement global state into an application, but struggling to understand how to access DispatchProps from a sub-component. It doesn't seem like DispatchProps::bridge_state exists...

Any documentation or help on this would be greatly appreciated. As soon as I understand it I would love to help contribute to these docs. I've found several examples which doesn't compile, which ideally should be brought up to date.

intendednull commented 2 years ago

DispatchProps are managed by the wrapper component, no need to create a bridge manually. They are clonable, so you should be able to pass to child components without issue. I'm always open to more documentation!

intendednull commented 2 years ago

Closing for inactivity. For additional support please join the discord https://discord.gg/VQck8X4