-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
function组件中如何使用 getOpenerEventChannel #7066
Comments
同问 在hooks中怎么使用getOpenerEventChannel这个函数想来源页面传值 |
暂时用这个方法可以获取到eventChannel
|
可以找到这个方法了,但是获取到的eventChannel是个空对象,你这边是这个情况吗 |
是因为调用getOpenerEventChannel()方法时报了[data is not defined]这个错误,我分别在useReady、useLayoutEffect、useEffect这三个生命周期中调用报的错误相同,有人遇到相同的问题吗? |
@zxtyjx 我在useEffect中可以获取成功 |
when use the |
这个特性解决了什么问题?
下级页面往上级页面传递数据
这个 API 长什么样?
类似于 useDispatch ??
The text was updated successfully, but these errors were encountered: