Skip to content

v1.10.0 .clear() doesn't do anything #511

@geoidesic

Description

@geoidesic

I'm submitting a ...

Check one of the following options with "x" and add the appropriate label to the issue as well


[x] Bug report 
[ ] Regression (behaviour that used to work and stopped working in a new release)

Describe the Issue
.clear() doesn't do anything

To Reproduce
Replace the content below with the steps to reproduce the behaviour.

import localforage from "localforage";
localforage.clear();

Expected Behaviour
I expect local storage to be empty after clear. It's not,

Desktop (please complete the following information):

  • OS: [e.g. iOS]: Mac OS 14.3.1 (23D60)
  • Browser [e.g. chrome, safari]: Chrome
  • Version [e.g. 22]: Version 123.0.6312.87 (Official Build) (arm64)

Environment/Server:


- [ ] Production
- [ ] Staging
- [ ] Test
- [x] Development

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions