You can see from the original issue `config.value.value` was causing the multiple `initStore` INTISTORE,OLDVAL=>
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- frontend
Research direction
Start by reproducing the watch(config, ...) example from the issue in the element-plus-playground and inspect the onTrigger output for repeated initStore calls. Compare the behavior of config with the reported config.value.value case; done means the reproduction no longer causes unintended multiple initialization calls.
Written by the indexing model from the issue text.
Description
You can see from the original issue config.value.value was causing the multiple initStore.
ts
watch(
config,
(newVal, oldVal) => {
if (isEqual(newVal, oldVal)) return console.log('cancel')
initStore()
},
{
immediate: true,
onTrigger(event) {
console.log(event.key)
}
}
)
- Dominant language
- Vue
- Stars
- 227
- Forks
- 80
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from element-plus/element-plus-playground
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
无法使用 UnoCSS 图标Openenhancement
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
element-plus/element-plus-playground#268 · 4 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
All issues in element-plus/element-plus-playground
Similar issues
-
Type/Bug
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
-
accessibility bug html websites
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
quarto-dev/quarto-cli#15187 ·
Maintainers usually reply within 1 day
-
bug needs triage P3
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
pbakaus/impeccable#1143 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
solidjs-community/solid-primitives#1082 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day