Skip to content

Instantly share code, notes, and snippets.

@pomber
Created October 17, 2017 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pomber/e59bdd04686d4bf07d96b0ab11f61f7f to your computer and use it in GitHub Desktop.
Save pomber/e59bdd04686d4bf07d96b0ab11f61f7f to your computer and use it in GitHub Desktop.
module.exports = {
NoWork: 0, // No work is pending.
SynchronousPriority: 1, // For controlled text inputs. Synchronous side-effects.
TaskPriority: 2, // Completes at the end of the current tick.
HighPriority: 3, // Interaction that needs to complete pretty soon to feel responsive.
LowPriority: 4, // Data fetching, or result from updating stores.
OffscreenPriority: 5, // Won't be visible but do the work in case it becomes visible.
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment