Skip to content

prop types for server side #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

prop types for server side #34

wants to merge 1 commit into from

Conversation

ulcuber
Copy link

@ulcuber ulcuber commented Aug 8, 2022

Resolves #33

Copy link

@rderks88 rderks88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason why this is not merged?

@ulcuber
Copy link
Author

ulcuber commented Nov 3, 2022

@rderks88

Tried vue-intersection-observer

Not compatible with SSR

See: #33
Workaround: downgrade to 0.1.8

Inline Handlers

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)

Has dependencies

core-js vue vue-router

Using vue-intersect

But has issues with dynamic components:
heavyy/vue-intersect#32

Need to be transpiled

See nuxt.config.js.build.transpile

@rderks88
Copy link

rderks88 commented Nov 3, 2022

Thank you ulcuber for your swift reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HTMLElement is not defined when using Nuxt SSR
2 participants