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

希望提供支持onShareTimeline的hooks #6945

Closed
cpocar opened this issue Jul 7, 2020 · 16 comments · Fixed by #6996
Closed

希望提供支持onShareTimeline的hooks #6945

cpocar opened this issue Jul 7, 2020 · 16 comments · Fixed by #6996
Labels
enhancement New feature or request
Milestone

Comments

@cpocar
Copy link

cpocar commented Jul 7, 2020

这个特性解决了什么问题?

解决微信小程序配置分享至朋友圈的配置问题,具体参见https://developers.weixin.qq.com/miniprogram/dev/reference/api/Page.html#onShareTimeline

这个 API 长什么样?

useShareTimeline, 类似useAppShareMessage

@cpocar
Copy link
Author

cpocar commented Jul 7, 2020

希望再3.0中提供支持

@Chen-jj Chen-jj added the enhancement New feature or request label Jul 7, 2020
@CynthiaNC
Copy link

急需!!

@boxcc
Copy link

boxcc commented Jul 8, 2020

2.0 能支持就最好了~

@without-yy
Copy link

急需!!

急需!!

急需!!

急需!!

@0xsignal
Copy link

0xsignal commented Jul 8, 2020

希望能尽快支持,感谢

@hhaoqin
Copy link

hhaoqin commented Jul 9, 2020

在编译后的dist文件夹,打开文件 vendors.js 搜索 “onShareAppMessage” 第一个数组,加入 “onShareTimeline” 即可支持

@ljyljy0211
Copy link

或者自己临时直接改@tarojs包里面的微信小程序相关目录,搜索 “onShareAppMessage”,然后对应的地方加上 onShareTimeline

@ljyljy0211
Copy link

ljyljy0211 commented Jul 9, 2020

或者在页面中自己定义
image
image

@Chen-jj Chen-jj added this to the 3.0.3 milestone Jul 9, 2020
@fjc0k
Copy link
Contributor

fjc0k commented Jul 10, 2020

@Chen-jj Taro 可以导出一个通用的 usePageEvent,避免不同端有些没有支持的 hook 无法使用。

@Chen-jj
Copy link
Contributor

Chen-jj commented Jul 10, 2020

@fjc0k 生命周期的支持需要在小程序的 Page 构造器中定义好相应的生命周期,这一步无法实现动态添加。

@bafhvxk70
Copy link

onShareTimeline的hooks预计支持2.x的版本吗,业务在2.x相对稳定,升级到3.x会有较大的成本

@Chen-jj
Copy link
Contributor

Chen-jj commented Jul 10, 2020

@bafhvxk70 会的,下个 patch 版本支持

@Chen-jj Chen-jj linked a pull request Jul 10, 2020 that will close this issue
15 tasks
@yeojongki
Copy link

@Chen-jj 我提了个 2.x 版本的 PR #6981

@Chen-jj
Copy link
Contributor

Chen-jj commented Jul 10, 2020

@yeojongki 修一下 ci 吧

@yeojongki
Copy link

yeojongki commented Jul 10, 2020

@Chen-jj 看了下 2.x 分支最近的 commit CI 都是挂了的,貌似是你们升级 lerna 的问题

@zhouzyc
Copy link

zhouzyc commented Sep 1, 2021

太难了 1.0 的 hooks写法怎么使用onShareTimeline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.