Closed jonnyandrew closed 6 months ago
HI, this was fixed in #2022. Your code technically shouldn't have compiled:
With signals, you no longer need to call to_owned
on values anymore, so your code can be simply rewritten to
use_effect(move || strings.set(vec![String::from("Loaded a string")]));
Problem
When I write to a signal from within a
use_effect
hook, my app crashes.The error is something like:
Steps To Reproduce
Run the following minimal sample and look in the webview logs for the error.
Expected behavior
It runs without crashing.
Screenshots N/A
Environment:
desktop
Questionnaire