Live Blog Tacking state management
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.