prism icon indicating copy to clipboard operation
prism copied to clipboard

SSR data parameter of layouts

Open kaleidawave opened this issue 3 years ago • 0 comments

Currently a layout component (Denoted with @Layout decorator) can have a state on the frontend. It inherits from Component and its markup is subject to the same templating binding and reactivity that any other component is subject to.

The problem arises around server side rendering pages that use a layout which has data. The component should append its inherited layout parameter to its own parameters.

Issue is around: https://github.com/kaleidawave/prism/blob/9f76e8b7c3ebeaa811144cc5b587136d28d3bd1f/src/component.ts#L677

There is also a opportunity here to refactor the way client global parameters work in the same way.

kaleidawave avatar Oct 13 '20 16:10 kaleidawave