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
{{ message }}
This repository was archived by the owner on Feb 2, 2024. It is now read-only.
In Voices' page component Metadata.jsx, there appears to be logic that assumes that:
a user might enter a value into the ListInputBox component but not click Add Item and
we want to commit and use the staged value upon form submission
Therefore, Metadata.jsx creates a ref and passes it into ListInputBox (ListInputBox is still a class component in Voices). Metadata then uses the addItem method on the ListInputBox component via the ref to commit any staged values upon form submission.
Now that ListInputBox is a functional component, ancestors can no longer access its "methods" and logic like what I described above will have to be reimagined.