Comment

Comment by jpochtar

Yeah you have to do

  <If cond={...} then={() => 
    ...
  } els={() => 
    ...
  } />
so the `then` and `els` branches only get evaluated if needed
parent jpochtar 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton