-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
希望提供支持onShareTimeline的hooks #6945
Comments
希望再3.0中提供支持 |
急需!! |
2.0 能支持就最好了~ |
急需!! 急需!! 急需!! 急需!! |
希望能尽快支持,感谢 |
在编译后的dist文件夹,打开文件 vendors.js 搜索 “onShareAppMessage” 第一个数组,加入 “onShareTimeline” 即可支持 |
或者自己临时直接改@tarojs包里面的微信小程序相关目录,搜索 “onShareAppMessage”,然后对应的地方加上 onShareTimeline |
@Chen-jj Taro 可以导出一个通用的 usePageEvent,避免不同端有些没有支持的 hook 无法使用。 |
@fjc0k 生命周期的支持需要在小程序的 Page 构造器中定义好相应的生命周期,这一步无法实现动态添加。 |
onShareTimeline的hooks预计支持2.x的版本吗,业务在2.x相对稳定,升级到3.x会有较大的成本 |
@bafhvxk70 会的,下个 patch 版本支持 |
@yeojongki 修一下 ci 吧 |
@Chen-jj 看了下 2.x 分支最近的 commit CI 都是挂了的,貌似是你们升级 lerna 的问题 |
太难了 1.0 的 hooks写法怎么使用onShareTimeline |
这个特性解决了什么问题?
解决微信小程序配置分享至朋友圈的配置问题,具体参见https://developers.weixin.qq.com/miniprogram/dev/reference/api/Page.html#onShareTimeline
这个 API 长什么样?
useShareTimeline, 类似useAppShareMessage
The text was updated successfully, but these errors were encountered: