graphitation icon indicating copy to clipboard operation
graphitation copied to clipboard

[ARRDT] Known excessive render update

Open alloy opened this issue 3 years ago • 0 comments

These are known and will NOT be fixed, as they would require substantial complexity changes and are automatically fixed by virtue of updating to React v18 (when that goes stable).

usePaginationFragment

The new variables and the loading status changes are already batched, but the new data coming from the useFragment hook comes in a separate update.

(NOTE: I did get rid of the needless addition of id: undefined, but it does not cause any additional renders, just debugging noise.)

React v17

usePaginationFragment-React-v17

React v18

usePaginationFragment-React-v18

alloy avatar Jan 05 '22 14:01 alloy