vuejs / vuejs/docs

Document where to place static data

Open
#2,554 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vue
Stars
3.2k
Forks
5k
Avg merge
14d 17h
Merged PRs (30d)
1

Description

https://vuejs.org/api/options-state.html mentions this.$data` property, which is used to hold reactive data. Holding large JSON lists there probably gives a performance penalty even if the data is not changed and only accessed.

It would be nice to document this "static data" vs "reactive data" in Vue, as well as indicate the best approach to store static data.

Based on https://github.com/vuejs/core/discussions/8749

Contributor guide

No contributing guide indexed for this repository

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 Options State API page linked in the issue and review discussion #8749 for the context around static and reactive data. Document the distinction and the recommended approach for storing static data, with the result reflected in the relevant Vue documentation.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.