Toolbar menu breaks when having large number of menu subtrees.

Created on 23 April 2020, over 4 years ago
Updated 23 January 2023, over 1 year ago

I'm getting the below error when there are large amount of subtrees present in the admin menu when used in with contrib module Toolbar Menu.
QuotaExceededError: Failed to execute 'setItem' on 'Storage': Setting the value of 'Drupal.toolbar.subtrees.theme' exceeded the quota.

The solution Ive used is to wrap 'localStorage' in try/catch statement so it doesn't break the menu.

🐛 Bug report
Status

Needs work

Version

10.1

Component
Toolbar 

Last updated 4 days ago

  • Maintained by
  • 🇫🇷France @nod_
Created by

🇮🇳India saurabhpandit26 Mumbai

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
Production build 0.71.5 2024