Skip to content

Conversation

sheepzh
Copy link

@sheepzh sheepzh commented Jun 6, 2025

Fix #2512

Functional components are like pure functions without creating component instance and life style.

https://vuejs.org/guide/extras/render-function.html#functional-components

So need to check it before invoking isUnmounted

Copy link

netlify bot commented Jun 6, 2025

Deploy Preview for vue-router canceled.

Name Link
🔨 Latest commit b4ba7cd
🔍 Latest deploy log https://app.netlify.com/projects/vue-router/deploys/68429355a3b95b0008fce610

posva added a commit that referenced this pull request Jun 6, 2025
@posva
Copy link
Member

posva commented Jun 6, 2025

Thanks! See #2512 (comment)

@posva posva closed this Jun 6, 2025
negezor pushed a commit to negezor/vue-router that referenced this pull request Jul 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error when the route bound to a functional component

2 participants