WordPress.org

Make WordPress Core

Opened 10 months ago

Closed 3 weeks ago

#50101 closed defect (bug) (reported-upstream)

Server side Gutenberg block add example cache

Reported by: nextendweb 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)

This ticket was mentioned in Slack in #core by peterwilsoncc. View the logs.


3 weeks ago

#2 @peterwilsoncc
3 weeks ago

  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed

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.

Note: See TracTickets for help on using tickets.