Skip to content

Commit

Permalink
fix(picture+image): renamed load attr to hydrate and bridging eventli…
Browse files Browse the repository at this point in the history
…steners
  • Loading branch information
StephanGerbeth committed Feb 6, 2022
1 parent 2103361 commit 04f1975
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/components/SpeedkitImageFinal.vue
Expand Up @@ -6,15 +6,15 @@ export default {
inheritAttrs: false,
props: {
load: {
hydrate: {
type: Boolean,
default: true
}
},
render (h) {
const component = h(SpeedkitImage, { props: { ...this.$attrs, critical: this.isCritical } });
if (!this.isCritical && !this.load) {
const component = h(SpeedkitImage, { props: { ...this.$attrs, critical: this.isCritical, on: this.$listeners } });
if (!this.isCritical && !this.hydrate) {
return h(LazyHydrate, { props: { never: true } }, [
h('noscript', {}, [
component
Expand Down
6 changes: 3 additions & 3 deletions lib/components/SpeedkitPictureFinal.vue
Expand Up @@ -6,15 +6,15 @@ export default {
inheritAttrs: false,
props: {
load: {
hydrate: {
type: Boolean,
default: true
}
},
render (h) {
const component = h(SpeedkitPicture, { props: { ...this.$attrs, critical: this.isCritical } });
if (!this.isCritical && !this.load) {
const component = h(SpeedkitPicture, { props: { ...this.$attrs, critical: this.isCritical, on: this.$listeners } });
if (!this.isCritical && !this.hydrate) {
return h(LazyHydrate, { props: { never: true } }, [
h('noscript', {}, [
component
Expand Down

0 comments on commit 04f1975

Please sign in to comment.