Skip to content

Pinia colada queries trigger too often #598

@teleskop150750

Description

@teleskop150750

If you open a site with a page with a loader, it stops being tracked

This problem is present in nuxt (SSR false or true)

nuxt/loader

In vue such problem is not noticed

vue/loader

2025-03-11.11-53-07.mp4

logging shows that entry is not active

const invalidateQueries = action((filters) => {
    return Promise.all(
      getEntries(filters).map((entry) => {
        invalidate(entry); console.error('invalidateQueries', entry, entry.active, toValue(entry.options?.enabled));
        return entry.active && toValue(entry.options?.enabled) && fetch(entry);
      })
    );
  });

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugthis isn't working as expected🔄 data-loadersrelated to Data Loaders

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions