SolidJSS
SolidJSโ€ข3y agoโ€ข
33 replies
Mathieu

Issue with reactivity when using mergeProps

https://playground.solidjs.com/anonymous/61802a1d-b0c8-44d9-9675-e6e73cdf36d3
In this demo, I do not understand why the last log says:
[Select] props.selectedOption {id: '2', name: 'bar'}
I expected undefined and if I remove the mergeProps call, the selected option will be undefined as expected.
(note that the code itself doesn't make much sense but I removed as much code as possible from the real app)
Was this page helpful?