Storybook: Firing an action with the info addon is slower than molasses

Created on 28 Jul 2017  ·  3Comments  ·  Source: storybookjs/storybook

What is this?

A button with onClick={action('onClick')}. Two identical stories except the first is added with .add() the second with .addWithInfo().

What I'm doing

😄 Clicking the button several times in the add() story. The actions are logged immediately.

😞 Clicking the button once in the addWithInfo() story. The UI freezes for several seconds before the action is logged.

Demo

http://g.recordit.co/QNxUJm0trG.gif

In all fairness, it is probably slightly faster than molasses, depending.

actions info inactive question / support

Most helpful comment

In v4 we will deprecate the addWithInfo API and rename it to addWithMolasses. 😭

In all seriousness, we're making a bunch of changes to the info addon (e.g. #1147) so let's see how things shake out with that. cc @UsulPro

All 3 comments

In v4 we will deprecate the addWithInfo API and rename it to addWithMolasses. 😭

In all seriousness, we're making a bunch of changes to the info addon (e.g. #1147) so let's see how things shake out with that. cc @UsulPro

Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 60 days. Thanks!

Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!

Was this page helpful?
0 / 5 - 0 ratings