chinwagsocial/app/javascript/mastodon
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
..
actions Optimize makeGetStatus (#11211) 2019-06-30 00:12:38 +02:00
components Add option to disable blurhash previews (#11188) 2019-06-26 19:33:04 +02:00
containers Add confirm modal for unboosting toots (#10287) 2019-05-09 22:39:26 +02:00
features Display FTS warning based on actual search term, not the one being typed (#11202) 2019-06-28 19:29:11 +02:00
locales New Crowdin translations (#11144) 2019-06-22 17:26:09 +02:00
middleware
reducers 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
selectors Optimize makeGetStatus (#11211) 2019-06-30 00:12:38 +02:00
service_worker
storage
store
utils
api.js
base_polyfills.js
common.js
compare_id.js
extra_polyfills.js
initial_state.js Add option to disable blurhash previews (#11188) 2019-06-26 19:33:04 +02:00
is_mobile.js
load_polyfills.js
main.js
performance.js
ready.js
rtl.js
scroll.js Use ScrollToOptions for smooth scrolling if supported (#11207) 2019-06-29 18:32:06 +02:00
settings.js
stream.js Improve streaming server security (#10818) 2019-05-24 15:21:42 +02:00
test_setup.js
uuid.js