Are you using the quota API? Looks like you can ask how much space is available, so you could warn the user to free space if it is below some threshold.
Not yet! I plan to but it's not fully supported (I think Safari is the only one missing?) and you still have to handle quota exceeded errors anyway. My first step will be handle the quota errors gracefully and warn users that it's not locally saving changes.
Comments
Are you using the quota API? Looks like you can ask how much space is available, so you could warn the user to free space if it is below some threshold.
https://web.dev/storage-for-the-web/#check
Not yet! I plan to but it's not fully supported (I think Safari is the only one missing?) and you still have to handle quota exceeded errors anyway. My first step will be handle the quota errors gracefully and warn users that it's not locally saving changes.