mikesol / purescript-deku

A PureScript web UI framework
https://purescript-deku.surge.sh/
Apache License 2.0
123 stars 12 forks source link

Fix switcher behaviour for multiple pure values. #107

Closed jterbraak closed 7 months ago

jterbraak commented 9 months ago

When switcher receives a Poll with multiple pure values all will be rendered at the same time and none will get their remove event triggered.

I've added a useMemoized hook that should fix the issues introduced by useRant and useReflect but I'm not sure if this implementation is save to export.

mikesol commented 8 months ago

Apologies for the delay, I've been swamped with work but I'll look at this next week. Thanks for your patience.