Unable to Access Data in Embedded Retool Component

I am encountering an issue with embedding a Retool app using the react-retool library. Despite passing the data prop to the Retool component, I am unable to access the data within the Retool app.

console.log('Data received from Retool:', data)} />

I need to pass a token from the React app to retool the API library.

1 Like

Hey @Ish_Modi! Welcome to the community.

When using the react-retool library, the data param can't be referenced directly and is instead exposed via a special type of query called a ParentWindow query, as described here.

I hope that helps! Let me know if you have any follow-up questions.