Patterns tab is empty until all the user created patterns (Reusable blocks) are fetched #64274
Closed
2 tasks done
Labels
[Feature] Patterns
A collection of blocks that can be synced (previously reusable blocks) or unsynced
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
When the remote patterns, core, and theme patterns are disabled, the patterns tab shows empty until all the user patterns have been fetched from the server.
This is not a problem for websites with fewer user patterns. However, it significantly increases the loading time for websites with more user patterns(reusable blocks). For instance, an application with ~4K user patterns must make 40 remote Rest API calls before displaying the categories in the patterns tab.
Disable non-user patterns with the below code.
I have tried some potential solutions locally, but I'm not sure that would be scalable for smaller and larger sites.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Screen.Recording.2024-08-05.at.20.38.06.-.COMPRESS.mp4
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
The text was updated successfully, but these errors were encountered: