Select, structuralSharing and 'global' stability
If I run a non-select query twice, the returned data will be identical, globally.
When I use a query with a select, that reshapes the data (instantiates new variables) this is no longer true.
I know that each observer has its own
to memo the
I understand that this would require
?
When I use a query with a select, that reshapes the data (instantiates new variables) this is no longer true.
I know that each observer has its own
#selectResult and this is why they are no longer identical, but would it be a viable to extend the functionality of memoization (hacky implementation + cleanup on unsub):to memo the
selectResult globally based on options.select/#selectFn (and probably structuralSharing too)?I understand that this would require
select to be as stable as possible - either static or memoized - or adding a new selectKey prop, but maybe