This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/tests/unit
Alan Guo Xiang Tan 30bd1dcefd
DEV: More efficiently trigger topic tracking state on state change (#16952)
* When loading topics in bulk, only trigger state change callbacks after
all the topics have been loaded and we determine that state has actually
changed.

* State change callbacks are also only triggered when state has changed.

The use of JSON.stringify might raise some performance concerns here as this is a
performance sensitive codepath. However, I measured the time for each
`_setState` function call locally, by wrapping the function call with
`performance.now()`, and did not see any significant overhead.
2022-05-31 10:20:55 +08:00
..
controllers DEV: Unflak-ify tests and make them more robust (#16659) 2022-05-06 11:53:23 +08:00
ember DEV: Disallow Ember global usage (#16147) 2022-03-09 17:54:07 +01:00
lib FIX: Correctly handle nested quotes in to-markdown (#16938) 2022-05-27 22:05:43 +02:00
mixins DEV: Deprecate assert.not() (#15595) 2022-02-09 18:49:05 +01:00
models DEV: More efficiently trigger topic tracking state on state change (#16952) 2022-05-31 10:20:55 +08:00
services FEATURE: cache last post number (#15772) 2022-02-10 13:09:28 +11:00
utils DEV: Disallow Ember global usage (#16147) 2022-03-09 17:54:07 +01:00
localization-test.js FIX: Translation overrides from fallback locale didn't work on client 2021-12-17 14:03:35 +01:00