Cancelling collections fetch

Lately, I’ve hade some of these errors in my logs, “Cancelling collection fetch (navigation)”, and ofc. collection does not load.

image

I have it mostly when trying to load a collection upon “On mounted”, both inside/outside of components and other elements. Only way I’ve found to get around the error is to add a small delay in the workflow before loading the collection.

Any idea what might cause this?

Hi, a collection fetch is canceled when it end in another page that the one it started.

What is your pattern, could you showcase through a loom video ? If you think its a bug you can report it on support.weweb.io with steps to reproduce on your project (and credentials to login if required by your app) so we can try to figure out :slight_smile:

I don’t know if it’s a bug or by design, but seems to me that the “on mounted” triggered collection load starts very early in the page load, and cancels during the page load.


Ernestus Skilt og Reklame - Portal | WeWeb - 3 April 2024 - Watch Video

The top one “Alle organisasjoner” is a component in an instance of the top menu, and I tried to load the collection both “on create” (new trigger) and “on mounted”, both with same result.

“Fetch this collection automatically” seems to not be working when the collection is needed inside a component, hence trying to load the collection inside the component instead, so it automatically loads wherever the component is used. Should work?

But, adding a Time delay of just 1 ms seems to fix it thought…

Tell me if you want me to report it to support.weweb.io, I can do that if you think this is a bug.

Most probably a bug, it would be very helpful to have this reported through the support thanks a lot :pray:

Ok, I have recreated the error in a new deployment, and reported it as a bug, with steps to reproduce.

Keep up the good work :ok_hand:

Btw your ticket system needs reworking :slight_smile:

1 Like

Thanks. I agree, it’s planned on the short/mid-term roadmap, we gathered enough feedback to revamp it from the ground up! :slight_smile: