Open namse opened 10 months ago
prototype example https://github.com/namse/rust-plugin-example
using function pointer setting.
extern "Rust" with dylib seems not working. So I decided to use function pointer setting.
I think hot reload is very dangerous depending on what kind of state user will save in hooks system.
Some topics we have to research,
To achieve hot reload, user's code should be shared library(or wasm), which we can load/unload during execution.
For example,
So, runtime keep memory state even on reload user code. we can refresh small amount of component which the type of state or props changed.
What we need to research is