Navigation: Preload Navigation screen API requests#24672
Navigation: Preload Navigation screen API requests#24672noisysocks wants to merge 1 commit intomasterfrom
Conversation
Use wp.apiFetch.createPreloadingMiddleware to preload the innitial API requests made by the Navigation screen. This makes the screen appear quicker.
|
Size Change: 0 B Total Size: 1.16 MB ℹ️ View Unchanged
|
talldan
left a comment
There was a problem hiding this comment.
There seems to be a couple of (possibly caching?) bugs in this branch that I couldn't reproduce on master.
- When deleting the last/only menu, the screen briefly changes, but then the deleted menu re-appears.
- When no menus are present (delete your last menu and then reload the page) and creating a menu for the first time, the 'Create Menu' UI is still shown after the menu has been created.
Hm, bugger. I suspect the way we handle preloading in Gutenberg is flawed. We're caching requests at the Probably we'll have to look at implementing preloading at the Closing for now. |
Closes #24642.
Use
wp.apiFetch.createPreloadingMiddlewareto preload the initial API requests made by the Navigation screen. This makes the screen appear quicker.To test