Help

Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

useCursor() activeTableId when creating a new table

Topic Labels: Custom Extensions
339 0
cancel
Showing results for 
Search instead for 
Did you mean: 

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