Skip to content

Live Blog Tacking state management

Compare
Choose a tag to compare
@noelenwenede noelenwenede released this 26 Nov 11:36
· 585 commits to main since this release
e53dfec

This release moves the local state updates for x-live-blog-wrapper from componentDidMount to componentDidUpdate.

On ft-app the posts props doesn't get populated on the componentDidMount state hook. This release ensures the PostTracker instance is only created when the posts props is not an empty array which is done in componentDidUpdate hook. It also tracks changes in the length of the posts prop to update elements being observed.