question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

using multiple actions

See original GitHub issue

Hey dumb question as I seemingly can’t read the type properly

if I set up multiple actions like so:

const { state, actions } = useStateMachine(
    { saveAction, sorryAction },
    { saveAction: "saveToDB", sorryAction: "sorry" }
);

how do I send an update to only one of the actions? it’s not this:

actions([{ key: "sorry" }], {
    reason: "you dun goofed"
});

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
svict4commented, Oct 9, 2020

Oh yes I have! Will post a pic to Twitter 🙏

1reaction
svict4commented, Oct 9, 2020

Thank you. Am a certified idiot 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rules with multiple actions - IBM
A rule can have more than one action. For example, you might have: a : A1 {action1} A2 {action2} A3 {action3}; · If...
Read more >
Perform multiple actions with a single button - Coda Help Center
RunActions() is a great way to perform multiple actions at once. Let's see an example where we add multiple ...
Read more >
Spotlight: Using multi-action Applets - IFTTT
Why use multi-actions? Using multiple actions is a great way to maximize each Applet, stay organized, and streamline actions. If you already know...
Read more >
What is the best practice to handle multiple actions in ... - GitHub
I am currently having a page that has these many actions that the user can do. Upload a file; Add a new todo...
Read more >
Taking multiple actions - HCL Product Documentation
Taking multiple actions · Right-click a selected group of tasks or Fixlets containing default actions. · Select Take Default Action. · In this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found