Closed benmccann closed 2 years ago
Hey @benmccann, i think it makes sense to leverage SvelteKit's stuff here, at the time writing the metadata feature i think it wasn't possible accessing $page.stuff
. This would also simplify some Svemix internals a lot.
Svemix now leverages shadow endpoints and the implementation of metadata has changed, you can now return it inside your loader and no need for an extra metadata function,
Hi, thanks for sharing some great ideas in Svemix! metadata support is something we've long wanted to add to SvelteKit and we've now enhanced
stuff
such that it can be used for those purposes. Would it make sense for Svemix to leverage it?E.g. there's an example in the Svemix docs:
This could be written using SvelteKit's
stuff
as: