When using version 21 of the Blockstack SDK, the useFile hook fails if the file does not exist. This will present with an error in the log and no setter returned by the hook to create the file.
The reason is a change in the SDK: getFile now throws error on 404 instead of returning null.
When using version 21 of the Blockstack SDK, the
useFile
hook fails if the file does not exist. This will present with an error in the log and no setter returned by the hook to create the file.The reason is a change in the SDK: getFile now throws error on 404 instead of returning null.