#Solid 遇到一个奇怪的问题,大致上是
setStore("children", <Show when={condition()} fallback="fallback">content</Show>)
但是 condition 改变的时候 Show 不更新
原因是 Show 实际返回的是一个 function (createMemo),然后 setStore 看到第二个参数是个 function 会直接执行,所以 children 被设置成了一个静态值
第一个是老问题,setStore 设置一个 function 类型的值的语义有歧义
但是这里要再加上 Solid 强行声明 Show 的返回值是 JSX.Element,所以更难想到会是第一个问题