react-use-database icon indicating copy to clipboard operation
react-use-database copied to clipboard

Address render performance limitations

Open malerba118 opened this issue 6 years ago • 0 comments

Right now, mergeEntities and updateStoredQuery trigger every component that useDB to rerender even if the update didn’t affect the data that the component cares about. Look into memoizing denormalize in executeQuery. A different way to reduce renders would be to provide a bulk query updater, updateStoredQueries.

malerba118 avatar Feb 18 '19 14:02 malerba118