Closed
Description
When using vue-infinite-loading in a cacheable component inside of <keep-alive>
, the component will sometimes trigger onInfinite indefinitely while the parent component is inactive (cached).
You can recreate the condition using this jsfiddle:
- Click "Go to Bar" to activate the Bar component.
- Immediately click "Go to Foo". This will deactivate/cache Bar and replace it with Foo.
- In dev console, you'll see that onInfinite continues to run.
I ran into this issue usiung Vue-Router and <keep-alive>
to cache components, and found that the infinite loader would keep runing on cached components.