Closed chrisekelley closed 6 years ago
I think the problem is that you're using the default storage which is random-access-memory
which means each time you create an archive it's loading all its data for the first time. Instead you should use random-access-idb
in the browser. You'll need to create a custom Manager that does this. Check out my demo code for how that works.
Thanks a lot - your demo code was very helpful; I got it working and updated my simple example.
I made a simple example that tests creating a new Archive, writes to it, then opens it with DatArchive(url), and tries to write to it again. I get the following error:
If this because the archive does not have access to the private keys that were generated when it was created? I see that hyperdrive has a 'writable' property in the metadata that must be set. Or is this an operation that needs to happen on the filesystem/node side inside dat-gateway?