[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 issueVersion
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:
- Created 3 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have to save my component ( forms) to store and it gives me this
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)