mastodon/app/javascript
ThibG f895bf1984 Optimize makeGetStatus (#11211)
* Optimize makeGetStatus

Because `ImmutableList.filter` always returns a new object and `createSelector`
memoizes based on object identity, the selector returned by `makeGetStatus`
would *always* execute.

To avoid that, we wrap `getFilters` into a new memoizer that memoizes based on
deep equality, thus returning the same object as long as the filters haven't
changed, allowing the memoization of `makeGetStatus` to work.

Furthermore, we memoize the compiled regexs instead of recomputing them each
time the selector is called.

* Fix memoized result being cleared too often

* Make notifications use memoized getFiltersRegex
2019-06-30 00:12:38 +02:00
..
fonts
images Change full logo to use primary text color of the given theme (#10994) 2019-06-08 15:30:06 +02:00
mastodon Optimize makeGetStatus (#11211) 2019-06-30 00:12:38 +02:00
packs Put poll options behind content warnings (#10983) 2019-06-08 17:40:59 +02:00
styles Add message telling FTS is disabled when no toot can be found because of this (#11112) 2019-06-27 21:12:26 +02:00