You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
action(name) doesn't log anything by itself, it just creates and returns a logger function. You can either pass it directly as a handler (onClose={action('close')}), or call it:
onClose={(...args) => {
/* do your stuff */
action('close')(...args)
}}
In a story we try use the
action('validate barcode')
method to send actions. But for some reason the action logger does not present them.--- Update
We've figured out that
action
does not work inside a closureThis doesnt work:
This does work:
Situation
The text was updated successfully, but these errors were encountered: