Storybook: Vuejs: the stories are executed twice

Created on 26 Aug 2017  ·  3Comments  ·  Source: storybookjs/storybook

Hi, I detected my components are executed twice, at least when using Vuejs (didn't try with React). I am testing with latest 3.2.8 version. To reproduce just create a simple story like this:

```

````

The component above should be inited once, but is done so twice. Can anyone try and confirm this issue?

vue bug

Most helpful comment

@miljan-aleksic
Thank you for your feedback!

I checked it. it's bug.
I'll try to fix it later.

All 3 comments

Hi!
Thank you for your reporting!

I could not reproduce it.
Could you provide the reproduction repo please?

Hi @kazupon!

Nothing extra in my configuration, I used the CLI and added the created method. I did notice that this happen only on first init, so only when refreshing the browser page manually, it doesn't happen when switching to another story.

Anyway, here is the test repo https://github.com/miljan-aleksic/test-storybook. Switch to MyButton story, refresh the page and check the console.log. Tested with Chrome.

@miljan-aleksic
Thank you for your feedback!

I checked it. it's bug.
I'll try to fix it later.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rpersaud picture rpersaud  ·  3Comments

dnlsandiego picture dnlsandiego  ·  3Comments

tlrobinson picture tlrobinson  ·  3Comments

tirli picture tirli  ·  3Comments

alexanbj picture alexanbj  ·  3Comments