0356e21747
using streaming.js, when a status comes in to the current page, it queues up using updateTimelineQueue action, it then goes to the reducer to add "queuedItems" to state (up to max:40) and to tally up all count in that timeilne state "totalQueuedItemsCount". the dequeueTimeline action takes in a "timelineId", "expandFunc", and "optionalExpandArgs". when clicking on the "click to load more" it passes in the timelineId (e.g. "home", "community", etc.) and the "handleLoadMore" function from the timeline component. if within the range of the max: 40, it pushes them to the dom, if over the max: 40 it clears the timeline and refreshes the page/timeline to show the most recent 20 statuses. Then, it resets the "queuedItems" and "totalQueuedItemsCount" in timeline state. if no expandFunc is added, and timeline is "home" or "community" it expands those timelines with "optionalExpandArgs". Otherwise, it queues up to any other timeline (e.g. "hashtags", etc.) |
||
---|---|---|
.. | ||
accounts_counters.js | ||
accounts.js | ||
alerts.js | ||
compose.js | ||
contexts.js | ||
conversations.js | ||
custom_emojis.js | ||
domain_lists.js | ||
dropdown_menu.js | ||
filters.js | ||
group_relationships.js | ||
groups.js | ||
height_cache.js | ||
identity_proofs.js | ||
index.js | ||
list_adder.js | ||
list_editor.js | ||
lists.js | ||
media_attachments.js | ||
meta.js | ||
modal.js | ||
mutes.js | ||
notifications.js | ||
polls.js | ||
push_notifications.js | ||
relationships.js | ||
reports.js | ||
search.js | ||
settings.js | ||
status_lists.js | ||
statuses.js | ||
suggestions.js | ||
timelines.js | ||
trends.js | ||
user_lists.js |