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.

Vuejs: the stories are executed twice

See original GitHub issue

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:

<script>
export default {
  created () {
    console.log('should execute once')
  }
}
</script>

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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
mikemahonycommented, Jan 4, 2021

Hi @kazupon and @miljan-aleksic, would you please consider re-opening this issue for us? Thank you in advance!

5reactions
kazuponcommented, Aug 29, 2017

@miljan-aleksic Thank you for your feedback!

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is the script run twice? - vue.js
The markup that contains <main> and your custom <script> is executed immediately upon loading the page (before Vue even runs), ...
Read more >
How To Create Reusable Blocks of Code with Vue Single- ...
When creating a web application using Vue.js, it's a best practice to ... Next, in the root directory, run the following command in...
Read more >
Method runs twice in v-for - Get Help - Vue Forum
Hi, I have a problem with a method called twice in a v-for. It's for a builded navigation item class. Problem: I'm iterating...
Read more >
Five Traps to Avoid While Unit Testing Vue.js
The Third Trap: Test Doubles · A Test Double is abstract. · A Dummy has all the methods but does nothing. · A...
Read more >
Why does useEffect Run Twice in React v18.0?
... it wasn't like I knew it before. Yes, you read that right, it prints Call! twice… ... You have 2 free member-only...
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