Open ulcuber opened 2 years ago
@rderks88
vue-intersection-observer
See: https://github.com/BiYuqi/vue-intersection-observer/issues/33
Workaround: downgrade to 0.1.8
this.$emit("on-change", entries[0], this.unobserve);
leads to inconveniences with v-for
:
$event
is bound to entries[0]
and this.unobserve
is lost when using Inline Handlers:
<template v-for="(item, index) in items">
<observer :key="index" @on-change="onObserveChange(item, $event)">
</observer>
</template>
See: https://v2.vuejs.org/v2/guide/events.html#Methods-in-Inline-Handlers
Workaround:
(...params) => onObserveChange(item, ...params)
core-js vue vue-router
vue-intersect
div
change
+ enter
, leave
, destroyed
But has issues with dynamic components: https://github.com/heavyy/vue-intersect/pull/32
See nuxt.config.js
.build
.transpile
Thank you ulcuber for your swift reply.
Resolves #33