Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue 升级到3.4.5 后 showLoadingToast 出现【vue warn】 #12563

Closed
suncohey opened this issue Jan 10, 2024 · 8 comments
Closed

vue 升级到3.4.5 后 showLoadingToast 出现【vue warn】 #12563

suncohey opened this issue Jan 10, 2024 · 8 comments
Labels

Comments

@suncohey
Copy link
Contributor

suncohey commented Jan 10, 2024

重现链接

/

Vant 版本

4.8.2

描述一下你遇到的问题。

[email protected]:10 [Vue warn]: Slot "default" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.
at <BaseTransition onAfterEnter=fn onAfterLeave=fn appear=false ... >
at <Transition name="van-fade" appear=false onAfterEnter=fn ... >
at <VanPopup class="van-toast van-toast--middle van-toast--text" lockScroll=false onClick=fn ... >
at <VanToast show=false onClosed=fn onUpdate:show=fn >

重现步骤

https://codesandbox.io/p/devbox/github/suncohey/vue3ye/tree/vantBug/?file=%2Fsrc%2FProject%2Fbc_a_1%2FApp.vue

yarn dev

设备/浏览器

_No respo

Copy link

Hello @suncohey. Please provide an online reproduction demo by codesandbox or a minimal GitHub repository. Issues marked with need reproduce will be closed if there is no activity within 3 days. For background, please refer to Why reproductions are required.

你好 @suncohey, 我们需要你提供一个在线的重现示例,以便于我们帮你排查问题。你可以通过点击 codesandbox 创建,或者提供一个最小化的 GitHub 仓库。如果 3 天内未跟进,此 issue 将会被自动关闭。背景请参考 为什么需要最小重现

@li-wanbin
Copy link

@inottn
Copy link
Collaborator

inottn commented Jan 14, 2024

初步看了下是 vue 3.4.6 和 3.4.7 版本之间的一个改动引入了这个问题,它仅在开发环境会出现。根据改动的目的来看,在这个场景下触发警告应该是意料之外的。

因为这个问题涉及到上游,目前还不确定如何解决以及何时能够解决。如果有任何人对这个问题感兴趣,欢迎尝试解决。

Copy link

Hello @suncohey. We totally like your proposal/feedback, welcome to send us a Pull Request for it. Please send your Pull Request to main branch, provide changelog/TypeScript/documentation/test cases if needed and make sure CI passed, we will review it soon. We appreciate your effort in advance and looking forward to your contribution!

你好 @suncohey,我们完全同意你的提议/反馈,欢迎直接在此仓库 创建一个 Pull Request 来解决这个问题。请将 Pull Request 发到 main 分支,提供改动所需相应的 changelog、TypeScript 定义、测试用例、文档等,并确保 CI 通过,我们会尽快进行 Review,提前感谢和期待你的贡献。

@chaselen
Copy link

我也遇到这个,不知有没有什么影响

@inottn
Copy link
Collaborator

inottn commented Jan 18, 2024

@chenjiahan 需要增加一个 upstream 的 label

@chenjiahan
Copy link
Member

@inottn 已加~ upstream

@inottn
Copy link
Collaborator

inottn commented Jan 20, 2024

vue 3.4.15 已经修复这个问题

@inottn inottn closed this as completed Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants