Kubessandra
Kubessandra
Oh you are in nextjs, your component is having 'use client' in the top ?
Hey, If on nextjs are you using `use client` on top of the files ?
Which framework are you using all ?
Ok I probably have found the issue: To work gapi need to be loaded this is loaded when we create the `ApiCalendar` So before using any method of ApiCalendar you...
> @Kubessandra not work. Do you have some code example ? And when you say does not work, what is the issue, error or nothing happening ?
> Maybe this "ugly" workout will help with "gapi is not defined": > > ``` > > let tokenClient; > let gapiInited = false; > let gisInited = false; >...
And with the solution of @OchotaDariusz ?
From what I see, useGoogleCalendar seems to be hook. You probably need to have the calendar variable in a state or a ref, otherwise it will be re-created each time...
Since the new auth system, I didn't find the solution inside the package 😕
If you find a workaround, do not hesitate to tell it if we can implement it in the package