queue-run icon indicating copy to clipboard operation
queue-run copied to clipboard

Currrent context

Open assaf opened this issue 3 years ago • 0 comments

Useful for managing context if you have middleware or other composition

  • context is just an object with key/value pairs
  • context.user is the current user (readonly)
  • context.timeout is the timeout in seconds
  • context.remaining is the remaining time in ms
  • context.signal is the abort signal
  • When creating a context with timeout, set remaining and signal

Fashion this after sessionStorage?

assaf avatar Feb 07 '22 00:02 assaf