Import Retool From Custom Component is missing

Working on a custom component and I did a update to the @tryretool/custom-component-support module. This caused the Import Retool to be marked missing now along with the Retool.useComponentSettings.

image

I am able to import directly useRetoolState and useRetoolEventCallback , but before the update they were Retool.useEventCallback and Retool.useStateString.

This is from the custom component docs:

This is how my import works now, which generally works but I am not sure what I use now to set the UseComponentSettings.

This is the current docs for setting useComponentSettings

Does anyone know if there is a new way of accessing UseComponentSettings Method.

Hey @OLR! Thanks for reaching out.

Can you check to see which specific version is specified in your package-lock.json? I just tested with version 1.2, which seems to be the most recent, and didn't run into any issues.

Your import statement should look like the following:

import { Retool } from '@tryretool/custom-component-support'