mastodon/app/javascript/mastodon/actions
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
..
importer Apply filters to poll options (#11174) 2019-06-25 14:45:14 +02:00
push_notifications
accounts.js
alerts.js Fix list not being automatically unpinned when it returns 404 in web UI (#11045) 2019-06-11 02:26:37 +02:00
blocks.js
bundles.js
columns.js
compose.js When sending a toot, ensure a CW is only set if the CW field is visible (#11206) 2019-06-29 18:32:36 +02:00
conversations.js
custom_emojis.js
domain_blocks.js
dropdown_menu.js
emojis.js
favourites.js
filters.js
height_cache.js
identity_proofs.js
interactions.js
lists.js
modal.js
mutes.js
notifications.js Optimize makeGetStatus (#11211) 2019-06-30 00:12:38 +02:00
onboarding.js
pin_statuses.js
polls.js
reports.js
search.js Add message telling FTS is disabled when no toot can be found because of this (#11112) 2019-06-27 21:12:26 +02:00
settings.js
statuses.js Add responsive panels to the single-column layout (#10820) 2019-05-25 21:27:00 +02:00
store.js
streaming.js
suggestions.js
timelines.js