a post-component library for building user-interfaces on the web.

kanban/util/query: only suspend before we get the first value (#70)

authored by tombl.dev and committed by

GitHub eb42f81e afd19e1f

+2 -1
+2 -1
examples/kanban/src/util/query.ts
··· 21 21 } 22 22 23 23 function query() { 24 - return suspend(renderable, promise) 24 + if (value == null) return suspend(renderable, promise) 25 + return value 25 26 } 26 27 27 28 query.revalidate = () => {