Sitecore / jss

Software development kit for JavaScript developers building web applications with Sitecore Experience Platform
https://jss.sitecore.com
Apache License 2.0
262 stars 272 forks source link

Question: can we pass full rendering data to factory? #650

Closed shakyShane closed 2 years ago

shakyShane commented 3 years ago

Hi 👋🏻

Would there be any objections to passing the entire rendering data here (to the factory)? I have a situation where having the full layout data would help me decide which component to return.

https://github.com/Sitecore/jss/blob/c33b1f52281bb42f316ff720dcfe48e9c1936ce2/packages/sitecore-jss-react/src/components/PlaceholderCommon.tsx#L192

nickwesselman commented 3 years ago

Hi @shakyShane 👋

Can you elaborate more on the use case for this?

stale[bot] commented 2 years ago

This has been automatically marked as stale because it has not had recent activity. It will be closed if there is no further activity within 30 days. You may add comments or the 'keep' label to prevent it from closing. Thank you for your contributions.