nuxt / nuxt/devtools

fix: devtools along `deep: false` in `useAsyncData` lead to performance issues in dev

Open
#641 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
3.3k
Forks
214
Avg merge
13h 22m
Merged PRs (30d)
18

Description

🐛 The bug

See https://github.com/nuxt/nuxt/issues/25901 for context

🛠️ To reproduce

https://stackblitz.com/edit/github-6ss7qv?file=store%2FtrueShallow.ts,store%2FasyncDataShallow.ts,pages%2FasyncDataShallow.vue,pages%2FtrueShallow.vue,app.vue,pages%2Findex.vue

🌈 Expected behavior

The performance between enabled and disabled devtools shouldn't diverge as much

ℹ️ Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked StackBlitz reproduction, especially store/trueShallow.ts, store/asyncDataShallow.ts, pages/asyncDataShallow.vue, pages/trueShallow.vue, app.vue, and pages/index.vue. Compare performance with devtools enabled and disabled around useAsyncData with deep: false; done means the development-mode performance gap is reduced.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, typescript
Domain
devtools, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.