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
If we render the exact same component using a different renderer then the data would be almost identical except the url, params, and extension might change. This poses a challenge when we have complex component which need to identify page data that is not available at the component level. The current strategy is to utilize locals.url as a key to uniquely identify the data context for a render, however, since the same component might be rendered on different URLs this is not sufficiently unique to identify the data context for a render event.
To alleviate this issue there should be some attribute into the locals that can consistently determine what the context of our render., a simple example might be that any time we pass through url to the locals we should also pass through pageUri or something else which is unique in Amphora.
The text was updated successfully, but these errors were encountered:
Currently the
locals
parameter passed to component render hooks looks something like this:If we render the exact same component using a different renderer then the data would be almost identical except the
url
,params
, andextension
might change. This poses a challenge when we have complex component which need to identify page data that is not available at the component level. The current strategy is to utilizelocals.url
as a key to uniquely identify the data context for a render, however, since the same component might be rendered on different URLs this is not sufficiently unique to identify the data context for a render event.To alleviate this issue there should be some attribute into the locals that can consistently determine what the context of our render., a simple example might be that any time we pass through
url
to the locals we should also pass throughpageUri
or something else which is unique in Amphora.The text was updated successfully, but these errors were encountered: