Skip to content
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

Neither tweet-load-success or tweet-load-error are firing #30

Closed
Majncz opened this issue Sep 7, 2024 · 2 comments
Closed

Neither tweet-load-success or tweet-load-error are firing #30

Majncz opened this issue Sep 7, 2024 · 2 comments

Comments

@Majncz
Copy link

Majncz commented Sep 7, 2024

I may be dumb and it's my mistake, but even tho the posts do load, nothing gets logged in console.
Slots do work, only this doesn't.

<Tweet v-for="(postId, index) in postIds.filter((_, index) => index % 2 !== 0)" :key="postId"
  :tweet-id="postId" :width="'100%'" :dnt="true"
  @tweet-load-success="() => console.log('tweet loaded')"
  @tweet-load-error="() => console.log('tweet error')" />

Thanks ahead for looking into this.

@DannyFeliz
Copy link
Owner

Hi @Majncz, I tried your example and it works fine:

<script setup lang="ts">
import Tweet from "vue-tweet";
</script>

<template>
  <Tweet
    tweet-id="1832531798170976659"
    @tweet-load-success="() => console.log('tweet loaded')"
    @tweet-load-error="() => console.log('tweet error')"
  />
</template>

You can try it in codesanbox and open the codesanbox devtools and you will see the logs there.

@Majncz
Copy link
Author

Majncz commented Sep 9, 2024

Alright, suddenly it started working, I swear, yesterday it wasn't 😅😂
Sorry for wasting your time

@Majncz Majncz closed this as completed Sep 9, 2024
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

No branches or pull requests

2 participants