Help

Save the date! Join us on October 16 for our Product Ops launch event. Register here.

useCursor() activeTableId when creating a new table

Topic Labels: Custom Extensions
697 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