]> cat aescling's git repositories - mastodon.git/commit
Unobserve status on unmount (#4013)
authorunarist <m.unarist@gmail.com>
Thu, 6 Jul 2017 19:26:21 +0000 (04:26 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 6 Jul 2017 19:26:21 +0000 (21:26 +0200)
commit9c03fd9caef575792f08fd4e5c396d8d72bad09f
treebc9d921feb5770281c3e045a834eebfafd7af2e7
parent34c8a46d7de2b7e0b495b5c4a51c95c6a6b047b7
Unobserve status on unmount (#4013)

This fixes a warning on status unmounting (e.g. deletion).

This also resets IntersectionObserverWrapper on disconnect to avoid `unobserve()` calls
which has bug in Edge.
app/javascript/mastodon/components/status.js
app/javascript/mastodon/features/ui/util/intersection_observer_wrapper.js