NethermindEth / starknet-abi-form

Starknet ABI Form
https://www.npmjs.com/package/starknet-abi-forms
Apache License 2.0
4 stars 3 forks source link

fix formik reinit #17

Closed kwkr closed 8 months ago

kwkr commented 8 months ago

FunctionForm is not updated when new ABI is passed. This PR adds Formik option that enables the form to reinitialize the fields. This happens when for example using ConstructorForm and the ABI that is passed to it changes. In this case, constructor fields cannot be properly reinitialized. This is currently happening in starknet-remix-plugin

https://github.com/NethermindEth/starknet-remix-plugin/issues/242

rjnrohit commented 8 months ago

Thank you for the PR @kwkr