impress-2020/src
Matchu c8feb9a7e0 Fix infinite loop when searching for Markings
Oops, we did an in-place sort on the search variables we passed to Apollo! This meant that Apollo's first read of the variables wouldn't match later reads, so it would always decide the variables had changed, causing an infinite re-render loop.

Remember to copy existing arrays before sorting! 😅

Incidentally, this only happened for Markings, by coincidence: it's the only (I think) searchable zone label with multiple zone IDs, that don't sort alphabetically the same as they sort numerically. This `.sort()` sorts them alphabetically, whereas they come in numerical order in `allZones`, because that's the order the GQL server returns them in `build-cached-data.js`.
2021-05-13 00:28:06 -07:00
..
app Fix infinite loop when searching for Markings 2021-05-13 00:28:06 -07:00
server Serve pet name as id too in GQL 2021-05-12 22:52:58 -07:00
index.js inline index.css, omit unused fonts, preload hints 2020-05-18 00:56:46 -07:00
react-app-env.d.ts Finally finish TS setup, build works! 2021-02-02 21:38:57 -08:00