mirror of
https://github.com/whippyshou/mastodon
synced 2024-12-02 00:38:27 +09:00
b0407ece42
When ancestors get loaded, we scroll to the target status (i.e. skip ancestors). However, ancestors may get loaded before the status itself, then it causes TypeError because `this.node` is undefined yet. Since we don't show anything until the status gets loaded, we don't need to scroll to the target status in this time. If we get the status itslef later, it causes `componentDidUpdate` and scrolling correctly. |
||
---|---|---|
.. | ||
components | ||
containers | ||
index.js |