The plate hooks must be used inside the <PlateProvider id={id}> component's context. #1455
-
Why I'm getting this after upgrading to the new plate version? |
Beta Was this translation helpful? Give feedback.
Answered by
karthikcodes6
Mar 23, 2022
Replies: 3 comments 3 replies
-
This is a new requirement when using plate hooks outside |
Beta Was this translation helpful? Give feedback.
0 replies
-
Any example how to fix it?
…On Wed, 23 Mar 2022 at 7:58 PM, Ziad Beyens ***@***.***> wrote:
This is a new requirement when using plate hooks outside Plate component,
the plate store needs to be loaded first (with the provider) otherwise the
hooks get broken.
—
Reply to this email directly, view it on GitHub
<#1455 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF6IJU6ZSFPYEFDELI7QMR3VBMTBNANCNFSM5ROGPBOA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Looks like I need to wrap the component with |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
zbeyens
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like I need to wrap the component with
withPlateEventProvider