[wp-trac] [WordPress Trac] #61510: Script Modules: Add mechanism to pass data from server to client
WordPress Trac
noreply at wordpress.org
Wed Jun 26 12:53:16 UTC 2024
#61510: Script Modules: Add mechanism to pass data from server to client
-----------------------------+-----------------------------
Reporter: jonsurrell | Owner: jonsurrell
Type: feature request | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.5
Severity: normal | Keywords:
Focuses: javascript |
-----------------------------+-----------------------------
One useful feature available to Scripts that Script Modules do not support
is a way for the server to send data to the client with the page. Scripts
typically do this with `wp_add_inline_script`.
[https://make.wordpress.org/core/2024/05/06/proposal-server-to-client-
data-sharing-for-script-modules/ Proposal: Server to client data sharing
for Script Modules] proposes a mechanism for Script Modules to fill this
need.
Part of #60647.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61510>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list