beta 3.5 beta 2 (DWC) [Bug]: Plugin => registerCategory function
-
Registering a new menu category using registerCategory via plugin index.ts, and then adding new routes through registerRoutes does not update the navigation drawer, and the new Menu category/item(s) do not appear.
If however you start an additional unrelated plugin afterwards, then menu will get updated with the previously added Menu Category and pages/routes.
I have also established that the Menu Array has been updated post registerCategory, and is available to use by registerRoutes.
Note: I originally thought a nextTick allowing the DOM to update post registerCategory fixed the problem, but it was a false positive (so @chrishamm your original surprise it worked was correct .)
-
@MintyTrebor Thanks, I've changed
registerCategory
in the 3.5 branch to wait for the DOM update.