Skip to content

Dropping the last (grouped) item won't drop the storage from the session #67

@michael-e

Description

@michael-e

Storage attempts to clean up session data when items are dropped: Storage::drop will unset an empty storage array. However, the group will always remain in the storage array even after the last item has been dropped from the group. So the cleanup will not work as expected.

The solution is to make Storage::drop clean up recursively:

  • Drop item
  • Unset empty groups
  • Unset empty storage

I will push the fix soon.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions