Skip to content

Persisting the clock #1

@ianengelbrecht

Description

@ianengelbrecht

Can I persist the clock on the local device as follows:

const now = hlc.nxt()
localStorage.setItem('hlc', now)
// shut down app
// restart app
const last = localStorage.getItem('hlc')
hlc.recv(last)

Is this necessary?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions