chinwagsocial/app/javascript/mastodon
ThibG d588173ab3 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-08-06 21:51:02 +02:00
..
actions Optimize makeGetStatus (#11211) 2019-08-06 21:51:02 +02:00
components Change audio format from ogg to mp3 for wider compatibility (#11141) 2019-06-21 22:59:44 +02:00
containers Add confirm modal for unboosting toots (#10287) 2019-05-09 22:39:26 +02:00
features Fix swiping columns on mobile sometimes failing (#11200) 2019-08-06 21:50:05 +02:00
locales New Crowdin translations (#11144) 2019-06-22 17:26:09 +02:00
middleware
reducers Fix “mark as sensitive” not being used in delete & redraft (#10980) 2019-06-06 13:04:34 +02:00
selectors Optimize makeGetStatus (#11211) 2019-08-06 21:51:02 +02:00
service_worker Support pushing and receiving updates to poll tallies (#10209) 2019-03-11 00:49:31 +01:00
storage
store
utils Add WebP support (#9879) 2019-02-02 12:25:04 +01:00
api.js Do not set CSRF Token when no csrf header (#10383) 2019-03-26 11:13:20 +01:00
base_polyfills.js
common.js Improve the public hashtag page (#9831) 2019-01-17 14:06:08 +01:00
compare_id.js
extra_polyfills.js
initial_state.js Add responsive panels to the single-column layout (#10820) 2019-05-25 21:27:00 +02:00
is_mobile.js
load_polyfills.js
main.js
performance.js
ready.js
rtl.js
scroll.js
settings.js
stream.js Improve streaming server security (#10818) 2019-05-24 15:21:42 +02:00
test_setup.js
uuid.js