ccorcos / tuple-database

406 stars 19 forks source link

Fix initial render of useAsyncTupleDatabase #18

Closed maccman closed 1 year ago

maccman commented 1 year ago

Currently useAsyncTupleDatabase() has a bug in it where the value of the initial query doesn't trigger a re-render.

Since useAsyncTupleDatabase is always async we can dispense with the useRerender and just use useState instead.