diff --git a/.changeset/eleven-cobras-flash.md b/.changeset/eleven-cobras-flash.md index 11cd776abc..2307b282fc 100644 --- a/.changeset/eleven-cobras-flash.md +++ b/.changeset/eleven-cobras-flash.md @@ -3,5 +3,5 @@ --- Improve referential equality of deeply queried objects from the normalised cache for queries. Each query operation will now reuse the last known result and only incrementally change references as necessary, scanning over the previous result to identify whether anything has changed. - -While this affects our querying performance by about -20%, it should yield noticeable results in UI frameworks, where referential equality is often used to avoid work (e.g. in React with `useMemo` or `React.memo`). Overall, a 20% difference shouldn't be noticeable in day to day use given that we can read fairly typical queries over 10K times a second. ⚡ +This should help improve the performance of processing updates in UI frameworks (e.g. in React with `useMemo` or `React.memo`). +See: [#1859](https://github.com/FormidableLabs/urql/pull/1859)