Opened 10 months ago
Closed 3 weeks ago
#50101 closed defect (bug) (reported-upstream)
Server side Gutenberg block add example cache
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Editor | Keywords: | |
Focuses: | javascript, performance | Cc: |
Description
If you have a block which has render_callback
, so rendered at server side and you define example
in registerBlockType
then every time when you move your mouse in the add panel over your block, a new request will be made to the server to render the module.
I think this is unnecessary overload to the server and you could cache the first response.
Screen recording: https://www.youtube.com/watch?v=PidSzymx73I
Change History (2)
Note: See
TracTickets for help on using
tickets.
Thanks for the report, this was discussed during a triage session today.
The block editor is developed in the Gutenberg repository on GitHub rather than in trac. I have taken your report and logged it upstream at https://github.com/WordPress/gutenberg/issues/28869
I'll close this ticket off now that the issues moved.