Live Preview cannot be used multiple times on a page due to technical limitations.
However I could make it opt-in via a query parameter and a wrapper component. This way it could be enabled only for the relevant part of the page per collection/global.
Side benefit: in production, the live preview code wouldn't even run unnecessarily.
Live Preview cannot be used multiple times on a page due to technical limitations.
However I could make it opt-in via a query parameter and a wrapper component. This way it could be enabled only for the relevant part of the page per collection/global.
Side benefit: in production, the live preview code wouldn't even run unnecessarily.