Open ItaloCobains opened 11 months ago
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 you go in the function.
You can verify that by adding a console.log just before the new ApiCalendar and see how many times is this called.
I have the following code.
When I click on the button that launches one of these events, the
api.sign
variable never changes value. Is this correct?