61c07c3731
This commit replaces all unnecessarily repeated code for decoding and embedding blurhash canvases with separate component - <Blurhash>. Under the hood Blurhash component will use effect dependent on its props. This gives a few benefits: it will only be re-rendered whenever the hash or width/height/dummy props update, and will not render if canvas won't get to the final DOM, because then effect won't fire, which prevents weird bugs like #14257. |
||
---|---|---|
.. | ||
actions | ||
components | ||
containers | ||
features | ||
locales | ||
middleware | ||
reducers | ||
selectors | ||
service_worker | ||
storage | ||
store | ||
utils | ||
api.js | ||
base_polyfills.js | ||
common.js | ||
compare_id.js | ||
extra_polyfills.js | ||
initial_state.js | ||
is_mobile.js | ||
load_keyboard_extensions.js | ||
load_polyfills.js | ||
main.js | ||
performance.js | ||
ready.js | ||
rtl.js | ||
scroll.js | ||
settings.js | ||
stream.js | ||
test_setup.js | ||
uuid.js |