You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In certain integration use-cases, we could have a container app that needs to handle the submission for an embedded annotation-toolkit app.
On submission, we need to allow the parent or sibling component to get access to the state of the annotation-toolkit application.
Proposal
Our proposal for doing so is via React refs. This will allow on-demand state-retrieval functionality using forwardRef and useImperativeHandle.
Motivating Use Case
We'd like to be able to do something like the below where on an event such as a button click, we can retrieve the current state of the annotation-toolkit app.
Overview
In certain integration use-cases, we could have a container app that needs to handle the submission for an embedded annotation-toolkit app.
On submission, we need to allow the parent or sibling component to get access to the state of the
annotation-toolkit
application.Proposal
Our proposal for doing so is via React refs. This will allow on-demand state-retrieval functionality using
forwardRef
anduseImperativeHandle
.Motivating Use Case
We'd like to be able to do something like the below where on an event such as a button click, we can retrieve the current state of the annotation-toolkit app.
Design & Considerations
The text was updated successfully, but these errors were encountered: