Skip to content

Instantly share code, notes, and snippets.

@aulisius
Last active April 12, 2020 15:48
Show Gist options
  • Save aulisius/218e3a212e716eac42932fbc884b381c to your computer and use it in GitHub Desktop.
Save aulisius/218e3a212e716eac42932fbc884b381c to your computer and use it in GitHub Desktop.
how an order is defined
let widgets = [
{
name: "widgetA",
dependencies: [{ endpoint: "endpointA", reloadableActions: ["action 1"] }],
},
{
name: "widgetB",
dependencies: [{ endpoint: "endpointA", reloadableActions: ["action 1"] }],
},
{
name: "widgetC",
dependencies: [{ endpoint: "endpointA", reloadableActions: ["action 1"] }],
},
{
name: "widgetD",
dependencies: [{ endpoint: "endpointB", reloadableActions: ["action 2"] }],
},
{
name: "widgetE",
dependencies: [
{ endpoint: "endpointB", reloadableActions: ["action 1", "action 2"] },
],
},
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment