vuejs / vuejs/docs

setting vModel value in mounted hook may cause confusion

Open
#911 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Version

https://github.com/vuejs/vue-next/commit/54ed7592e416fc411196e9b767aebcc4f2ca20d8

Reproduction link

https://jsfiddle.net/uL8f9e2d/

Steps to reproduce
  1. open the terminal, see the log
What is expected?

custom directive's mounted hook should be called after value is set

What is actually happening?

custom directive's mounted hook is called before value is set because v-test is before v-model in template

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 reproduction link and the reported version commit; the issue names no documentation file, test, or entry point. Confirm the directive and model-hook ordering, then identify where this behavior should be documented and define completion as a clear explanation of the observed ordering and expected usage.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.