tinybase icon indicating copy to clipboard operation
tinybase copied to clipboard

Object-based hooks should return same ref if unchanged

Open jamesgpearce opened this issue 1 year ago • 0 comments

useTable, useRow, useValues etc will return a new object even if the content has not changed since the last render. Instead, they should be the same object (by reference) until the data changes.

h/t @cpojer

jamesgpearce avatar Jun 19 '24 14:06 jamesgpearce