hometown/app
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
..
chewy Add type, limit, offset, min_id, max_id, account_id to search API (#10091) 2019-02-26 15:21:36 +01:00
controllers Fix some flash notices/alerts staying on unrelated pages (#11364) 2019-08-06 21:50:45 +02:00
helpers Change full logo to use primary text color of the given theme (#10994) 2019-06-08 15:30:06 +02:00
javascript Optimize makeGetStatus (#11211) 2019-08-06 21:51:02 +02:00
lib Fix statsd UDP sockets not being cleaned up in Sidekiq (#11230) 2019-08-06 21:50:45 +02:00
mailers Fix error in AdminMailer#new_pending_account (#10264) 2019-03-14 14:20:22 +01:00
models Fix expiration date of filters being set to “Never” when editing them (#11204) 2019-08-06 21:50:45 +02:00
policies Admission-based registrations mode (#10250) 2019-03-14 05:28:30 +01:00
presenters Improve blocked view of profiles (#10491) 2019-04-07 04:59:13 +02:00
serializers Fix alerts booleans not being typecast correctly in push subscription (#11343) 2019-08-06 21:50:45 +02:00
services Fix invites not being disabled upon account suspension (#11412) 2019-08-06 21:50:06 +02:00
validators Fix “invited by” not showing up for invited accounts in admin interface (#10791) 2019-05-19 21:40:36 +02:00
views Remove expensive counters from federation page in admin UI (#11139) 2019-06-22 00:39:09 +02:00
workers Refactor all ActivityPub deliveries to be serialized and signed through one concern (#10966) 2019-06-04 23:11:18 +02:00