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.

onDone called even if not defined.

See original GitHub issue

The code from commit

https://github.com/rchl/vue-scrollto/commit/9925f183f9ae14ade7a9c84d142de4c0fc397665

calls ‘onDone’ even if it is not defined. That results in:

vue.runtime.esm.js:620 [Vue warn]: Error in v-on handler: "TypeError: onDone is not a function"

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
rigor789commented, May 30, 2019

Hey @SnirShechter! I will have some time in the next few days to finally go over some of the open PR’s as well as fixing this one. Sorry for the delay - its just been really busy lately!

1reaction
christianklemp-imtcommented, Jul 17, 2019

I’m having the same issue with this when I have force: false set and it doesn’t need to scroll.

TypeError: onDone is not a function at VueComponent.scrollTo [as $scrollTo] (vue-scrollto.js:200)
Read more comments on GitHub >

github_iconTop Results From Across the Web

onDone event name is undefined when invoked Observable ...
Observables can be invoked, which is expected to send events (strings or objects) to the parent machine, yet not receive events (uni-directional) ...
Read more >
When does onDone event work for StreamSubscription in Dart?
The onDone callback is called when the Stream is closed. You're never closing the Stream in the first example you provided, so the...
Read more >
onDone method - StreamSubscription class - dart:async library
The handleDone function is called when the stream closes. The value may be null , in which case no function is called. This...
Read more >
Mutations in Apollo Client - Apollo GraphQL Docs
To execute a mutation, you first call useMutation within a React ... default value is none , meaning that the mutation result includes...
Read more >
Invoking Services | XState Docs
An invocation is defined in a state node's configuration with the invoke ... data: 'No query specified' } return event.data; } }) },...
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