You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we have no defined method for apps to share data between the client and the server. Some apps have resorted to updating the appContext object as a way around this but we want to discourage this practice and v0.7.0 of Page Kit introduced errors when modifying appContext to prevent this behaviour.
Proposal:
Create a new dotcom-ui-client-embed package containing all of the logic required to pass data from the server to the client without modifying appContext.
Refactor dotcom-middleware-app-context and dotcom-middleware-flags to use this new package rather than duplicating the same functionality in multiple places.
Document a process for other apps to make use of the new package to pass custom properties from the client to the server.
Incorporate this functionality into an example app.
The text was updated successfully, but these errors were encountered:
Currently we have no defined method for apps to share data between the client and the server. Some apps have resorted to updating the
appContext
object as a way around this but we want to discourage this practice andv0.7.0
of Page Kit introduced errors when modifyingappContext
to prevent this behaviour.Proposal:
appContext
.The text was updated successfully, but these errors were encountered: