Hey, I just updated our slicemachine to v1.0.0. The changelog says it's now possible to configure it to lazy load the slices' components, but I can't find any info on how to enable that feature.
Here's some feedback from the DevX team:
Lazy loading Slice components can be configured using
@slicemachine/adapter-next
’slazyLoadSlices
option.
lazyLoadSlices
is enabled by default, but can be disabled by setting the option tofalse
.
// slicemachine.config.json
{
repositoryName: "example-prismic-repo",
adapter: {
resolve: "@slicemachine/adapter-next",
options: {
lazyLoadSlices: true
}
},
slices: ["./slices"]
}