diff --git a/src/lazy-component.js b/src/lazy-component.js index eb3a3a0..3a77867 100644 --- a/src/lazy-component.js +++ b/src/lazy-component.js @@ -27,6 +27,9 @@ const LazyComponent = (lazy) => { lazy.addLazyBox(this) lazy.lazyLoadHandler() }, + getSSRProps () { + return {} + }, beforeDestroy () { lazy.removeComponent(this) }, diff --git a/src/lazy-image.js b/src/lazy-image.js index 8acdbd9..2179f1e 100644 --- a/src/lazy-image.js +++ b/src/lazy-image.js @@ -58,6 +58,9 @@ const LazyImage = (lazyManager) => { beforeDestroy () { lazyManager.removeComponent(this) }, + getSSRProps() { + return {} + }, methods: { init () { const { src, loading, error } = lazyManager._valueFormatter(this.src)