vue-infinite-loading icon indicating copy to clipboard operation
vue-infinite-loading copied to clipboard

Is there a version that can be used in vue3?

Open AmKang opened this issue 3 years ago • 21 comments

Hello, is there a version suitable for vue3, or use examples?

AmKang avatar May 31 '21 13:05 AmKang

You can use this inside a Vue 3 app via https://github.com/privatenumber/vue-2-3

Here's a working example https://codesandbox.io/s/vue3-infinite-loading-63rqj

https://github.com/wobsoriano/vue3-infinite-loading

wobsoriano avatar Jun 11 '21 10:06 wobsoriano

I've also made a PR with support for Vue 3: https://github.com/PeachScript/vue-infinite-loading/pull/312

I'm not sure if @PeachScript is still maintaining this repo though.

nVitius avatar Jun 11 '21 13:06 nVitius

thanks @nVitius

Botz avatar Jun 23 '21 11:06 Botz

I've also made a PR with support for Vue 3: #312

I'm not sure if @PeachScript is still maintaining this repo though.

Awesome!

wobsoriano avatar Jun 23 '21 14:06 wobsoriano

Thanks for the greate work from @nVitius , there has an pre-alpha version [email protected] base on the #312 branch, as the temporary way for Vue.js 3.0 projects. PR #312 still need some time to be reviewed.

It would be better if you could test it with your projects and feedback :D

PeachScript avatar Jun 30 '21 05:06 PeachScript

Thanks for the greate work from @nVitius , there has an pre-alpha version [email protected] base on the #312 branch, as the temporary way for Vue.js 3.0 projects. PR #312 still need some time to be reviewed.

It would be better if you could test it with your projects and feedback :D

slots not working

liho98 avatar Jul 14 '21 16:07 liho98

Thanks for the greate work from @nVitius , there has an pre-alpha version [email protected] base on the #312 branch, as the temporary way for Vue.js 3.0 projects. PR #312 still need some time to be reviewed. It would be better if you could test it with your projects and feedback :D

slots not working

For me, they are working greatly in Vue 3. What's your issue? image image

totallynotbakadestroyer avatar Jul 27 '21 10:07 totallynotbakadestroyer

Thanks for the greate work from @nVitius , there has an pre-alpha version [email protected] base on the #312 branch, as the temporary way for Vue.js 3.0 projects. PR #312 still need some time to be reviewed. It would be better if you could test it with your projects and feedback :D

slots not working

For me, they are working greatly in Vue 3. What's your issue? image image

Thanks, its working, my bad i was using <slot name="spinner">hey loading...</slot>, after try your code snippet with <template #spinner>hey loading...</template>, and its working. Thanks you!

liho98 avatar Jul 27 '21 12:07 liho98

Version for Vue3 ( https://github.com/ts-pro/vue-eternal-loading ) can be used with TS / JS / Browser. Native visibility detection based on Intersection Observer.

gavrashenko avatar Jul 30 '21 18:07 gavrashenko

Here's another one if you don't want to install any https://gist.github.com/wobsoriano/41a01290a9967c7f39077fe5c4a70436

wobsoriano avatar Jul 31 '21 03:07 wobsoriano

Version for Vue3 ( https://github.com/ts-pro/vue-eternal-loading ) can be used with TS / JS / Browser. Native visibility detection based on Intersection Observer.

@gavrashenko Almost seamlessly replaced "vue-infinite-loading" with your library. Works perfectly! Way to go!

AndreiHudovich avatar Oct 26 '21 15:10 AndreiHudovich

Hello,

any news ?

the vue 3 version is still in alpha ?

And btw using <template #spinner/> causes an error :

vue-infinite-loading.esm.js?3790:451 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'type')
    at eval (vue-infinite-loading.esm.js?3790:451:1)
    at Array.forEach (<anonymous>)
    at Proxy.slotStyles (vue-infinite-loading.esm.js?3790:446:1)
    at ComputedRefImpl.reactiveEffect [as effect] (vue.esm-bundler.js?19a6:418:1)
    at ComputedRefImpl.get value [as value] (vue.esm-bundler.js?19a6:1252:1)
    at Object.get [as slotStyles] (vue.esm-bundler.js?19a6:4607:1)
    at Object.get (vue.esm-bundler.js?19a6:9618:1)
    at Proxy.eval (vue-infinite-loading.esm.js?3790:702:1)
    at renderComponentRoot (vue.esm-bundler.js?19a6:2640:1)
    at componentEffect (vue.esm-bundler.js?19a6:7397:1)

it seems it assumes a node will be present in the slot

i fixed it by doing : <template #spinner><div></div></template>

lk77 avatar Mar 15 '22 09:03 lk77

I am getting this error on alpha version

Uncaught (in promise) TypeError: _ref is undefined

ogulcankarayel5 avatar Jun 21 '22 11:06 ogulcankarayel5

When are you planning to make official release for support with Vue.js 3?

bhanu2217 avatar Oct 03 '22 06:10 bhanu2217

@bhanu2217 it does work for vue3, i have an app in production that uses it, however still in alpha

lk77 avatar Oct 06 '22 14:10 lk77

Hi Guys! it is working fine only with one component. but in my case, I need to implement 3 components and my error was if any one component doesn't have any data to load then the remaining other components also not working. it is stopped on the initial loaded data.

Anyone facing the same issue ? @PeachScript

@lk77 did your vue 3 app have this kindly of multiple infinite loading component on same page ?

santhanakrishnanstark avatar Oct 19 '22 06:10 santhanakrishnanstark

@santhanakrishnanstark no i only have one, so i don't know in your case

lk77 avatar Oct 19 '22 07:10 lk77

@lk77 , thanks for the reply.

@PeachScript , can you help me with my question, whether this alpha version for vue3 is support with multiple infinite-loading component on same page ?

santhanakrishnanstark avatar Oct 19 '22 08:10 santhanakrishnanstark

@PeachScript Wanted to add in another support looking for Vue3 compatibility. Thank you in advance!

gitinthehole avatar Nov 25 '22 06:11 gitinthehole

+1 waiting for vue3

vicenterusso avatar Feb 11 '23 15:02 vicenterusso

I am getting this error when using "vue-infinite-loading": "^3.0.0-alpha.0-0",

TypeError: Cannot read properties of undefined (reading 'reset')
    at Proxy.identifier (vue-infinite-loading.esm.js:480:25)

roelVerdonschot avatar Feb 13 '23 13:02 roelVerdonschot