mipsy
mipsy copied to clipboard
[ WIP ] Attempted upgrade to yew 0.20 for mipsy-web, Run does not work
My (very long) attempt at upgrading mipsy-web to yew v0.20.
This upgrade works for yew 0.20 and yew-agent v0.2 , but the run
behaviour will not work.
This is because the pattern we based the worker on is fundamentally opposed to the behaviour of yew-agent v2, so will require lots of rewriting. We could attempt to hack our way into it working in yew 0.20 but I don't see the benefit, and will abandon this until https://github.com/yewstack/yew/pull/2773 has been merged, during which I'll redesign the worker methodology.
For more discussion on the patterns, checkout https://discord.com/channels/701068342760570933/1149300253820997653/1149300253820997653 in the yew discord
Most things work as is! Except the run button, as the automatic client -> worker -> client communication does not work without self-referencing data-structures.