Help

The Community will be temporarily unavailable starting on Friday February 28. We’ll be back as soon as we can! To learn more, check out our Announcements blog post.

useCursor() activeTableId when creating a new table

Topic Labels: Custom Extensions
858 0
cancel
Showing results for 
Search instead for 
Did you mean: 
Luis_Brito
5 - Automation Enthusiast
5 - Automation Enthusiast

This hook works well when changing between tables and when deleting a table but not when creating a new table.

Example:

const cursor = useCursor();

When I create a new table cursor.activeTableId is null and the property is only set moments later.
Any solution from the SDK to handle this specific case? Or should I implement some internal logic to wait for this property to be defined?

Screenshot 2021-11-22 at 18.23.30

0 Replies 0