Skip to content

FAQ & Troubleshooting

Hazer Hazer edited this page Dec 10, 2025 · 1 revision

Common mistakes

Don't initialize array of signal values via [create_signal; N]

When you're writing [create_signal(0); N] basically you are creating an array of a single Signal copied across all elements. This will lead to behavior where all elements are the same Signal value and will change simultaneously. What you need instead is to use core::array::from_fn(|_| create_signal(0)).

Clone this wiki locally