We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The ImageUploader component uploads to IPFS and sets the value of the state variable provided.
However, this does not work with the new useState.
Working code:
State.init({ img: null, }); return ( <div className='container row'> <div> Image upload: <br /> <IpfsImageUpload image={state.img} /> </div> </div>);
Breaks when replaced with useState variable:
const [img, setImg] = useState(null); return ( <div className="container row"> <div> Image upload: <br /> <IpfsImageUpload image={img} /> </div> </div> );
It gives error:
See this widget for example.
Could this be fixed with a "onChange" instead of image={} ?
The text was updated successfully, but these errors were encountered:
I think IpfsImageUpload should be deprecated. Better to reimplement this logic in a widget. It doesn't have anything that a Widget can't do.
IpfsImageUpload
Sorry, something went wrong.
No branches or pull requests
The ImageUploader component uploads to IPFS and sets the value of the state variable provided.
However, this does not work with the new useState.
Working code:
Breaks when replaced with useState variable:
It gives error:
See this widget for example.
Could this be fixed with a "onChange" instead of image={} ?
The text was updated successfully, but these errors were encountered: