[Vue warn]: Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead.

See original GitHub issue

Version

3.0.0-rc.9

Reproduction link

https://github.com/mon-compte-github/vue-3-avoid-app-logic-issue

Steps to reproduce

$ git clone git@github.com:mon-compte-github/vue-3-avoid-app-logic-issue.git
$ cd vue-3-avoid-app-logic-issue/
$ npm install
$ npm run serve

Choose a category and watch browser’s console.

What is expected?

no warning

What is actually happening?

[Vue warn]: Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead.


The sample project is a subset of a personal project (no design, mocked data). Everything seems to work fine, including in production mode, but this warning keep firing … and i don’t understand why.

BTW, vue 3 rocks (reactive, ref, … ❤️)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mehdinourollahcommented, Jul 5, 2021

image

I have to save my component ( forms) to store and it gives me this

0reactions
anming-johncommented, Nov 9, 2020

Uncaught (in promise) TypeError: Cannot read property ‘id’ of null at getId (runtime-core.esm-bundler.js:339) at runtime-core.esm-bundler.js:356 at Array.sort (<anonymous>) at flushJobs (runtime-core.esm-bundler.js:356)

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Vue warn]: Avoid app logic that relies on enumerating keys on ...
The keys will be empty in production mode to avoid performance ... Avoid app logic that relies on enumerating keys on a component...
Read more >
vue.js - Avoid app logic that relies on enumerating keys on a ...
Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance...
Read more >
Avoid app logic that relies on enumerating keys ... - Ionic Forum
Expected behavior: Routing causes vue warning on the console. Don't how to troubleshoot the problem. Code is working but got a warning.
Read more >
Router.push triggers "Avoid app logic that relies ... - Vue Forum
One of my pages have pagination but it's triggering “Avoid app logic that relies on enumerating keys on a component instance.” warning where...
Read more >
[Solved]-Avoid app logic that relies on enumerating keys on a ...
Coding example for the question Avoid app logic that relies on enumerating keys on a component instance-Vue.js.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found