Skip to content

Refresh "time-since" on an interval #3

@JasonEtco

Description

@JasonEtco

When a delivery sits around in the UI for awhile without being expanded, the time-ago gets stale and doesn't update. You can end up with payloads that look like this, until the bottom one is expanded and the component re-renders:

image

I'd like to set a timer (setInterval) to forceUpdate() the list. Does this sound like the right away to do it? Setting a timer on the list vs. on each ListItem; that'd make for more efficient re-renders, but more intervals existing in the window.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions