Guillaume
Guillaume
SSolidJS
Created by Guillaume on 9/23/2024 in #support
Type for two-element array event handlers
That works. Thank you very much. Even better, I see that there is EventHandlerUnion which allows you to manage both ways of passing a callback.
2 replies
SSolidJS
Created by Guillaume on 9/21/2024 in #support
Proxy error
Thank you, that is exactly what I wanted
5 replies
SSolidJS
Created by Guillaume on 9/21/2024 in #support
Proxy error
I have fixed the problem by using a function fn that mutates the Config object instead of returning a new one (and modifying the calls of changeConfig accordingly).
const changeConfig = (fn: (c: Config) => void) => {
setState(produce(state => {
fn(state.config);
...
const changeConfig = (fn: (c: Config) => void) => {
setState(produce(state => {
fn(state.config);
...
but I still don't understand the issue.
5 replies