njordhov / react-blockstack

React hooks for the Blockstack SDK
https://www.npmjs.com/package/react-blockstack
MIT License
21 stars 4 forks source link

Failing useFile hook with Blockstack 21 #7

Open njordhov opened 4 years ago

njordhov commented 4 years ago

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.

friedger commented 4 years ago

fixed in 0.6.9 and higher