I have a dummy component that has two buttons with onclick listeners.
One is wrapped in a <Show> that awaits some serverside data. The other one is not.
The onlick listener outside the <Show> works as expected. The button inside the <Show> renders, but doesn't do anything. What's going on?
export default function WidgetPage() {
const widgets = createServerData$(someFunction)
const inner = () => console.log("inner")
const outer = () => console.log("outer")
return (
<>
<Show when={widgets()} fallback={<p>Loading.</p>}>
<button onClick={inner}>INNER</button>
</Show>
<button onClick={outer}>OUTER</button>
</>
)
}