Comments (12)
原生小程序的component的this确实没有挂载 生命周期函数,也就是说这两种方式都无法再原生的component里触发是吗?
是的,因为现在本身逻辑都是不支持的。昨天我试了下可以实现,预计下周能发布一个新版本支持所有小程序的组件。
from spa-custom-hooks.
原生小程序一直都支持的
from spa-custom-hooks.
原生小程序下的组件还不支持自定义钩子,比如 onReadyUserInfo 没有触发
from spa-custom-hooks.
这个写法挺好的,希望作者兼容下原生小程序的组件,因为确实有写场景需要在组件内部依赖用户信息的
from spa-custom-hooks.
from spa-custom-hooks.
这里的ready和attached是vue的钩子。原生小程序Component内部this上没有生命周期函数,我得研究下如何实现。
from spa-custom-hooks.
原生小程序的component的this确实没有挂载 生命周期函数,也就是说这两种方式都无法再原生的component里触发是吗?
from spa-custom-hooks.
原生小程序的component的this确实没有挂载 生命周期函数,也就是说这两种方式都无法再原生的component里触发是吗?
是的,因为现在本身逻辑都是不支持的。昨天我试了下可以实现,预计下周能发布一个新版本支持所有小程序的组件。
您好,现在版本支持小程序组件了吗?支持的化能更新下小程序demom ,给里面加一个小程序的写法
from spa-custom-hooks.
原生小程序的component的this确实没有挂载 生命周期函数,也就是说这两种方式都无法再原生的component里触发是吗?
是的,因为现在本身逻辑都是不支持的。昨天我试了下可以实现,预计下周能发布一个新版本支持所有小程序的组件。您好,现在版本支持小程序组件了吗?支持的化能更新下小程序demom ,给里面加一个小程序的写法
刚发布了新版本,支持所有原生小程序的组件,包括lifetimes和pageLifetimes,用法跟原生钩子的用法一样
from spa-custom-hooks.
Related Issues (13)
- OnCreatedconfig invalid HOT 1
- uniapp编译后的支付宝、抖音小程序不触发组件中的onCreatedXXX钩子 HOT 1
- 请问小程序ts的默认模板怎么注册 HOT 1
- 可以在组件里面使用这个吗 HOT 8
- uniapp vue3能用吗 HOT 1
- uni-app开发的H5 直接通过访问路径进入页面时钩子拿不到options的参数 HOT 2
- 如何在自定义组件中定义钩子呢 HOT 1
- uniapp onCreatedxxx钩子在index.vue页面不触发,编译到微信小程序 HOT 1
- 建议支持下vue3 HOT 2
- 项目初次进入无法触发自定义hook HOT 1
- 原生小程序能否支持Behavior中生命周期 HOT 1
- 安装之后启动报错 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spa-custom-hooks.