Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't set new reactive key using 'set' function asynchronously #933

Closed
bigggge opened this issue May 14, 2022 · 12 comments
Closed

Can't set new reactive key using 'set' function asynchronously #933

bigggge opened this issue May 14, 2022 · 12 comments

Comments

@bigggge
Copy link

bigggge commented May 14, 2022

setup(){
    const a = reactive({})
    // set(a, 'testValue', 1) // worked
    setTimeout(() => {
      set(a, 'testValue', 2) // not worked
    })
    return {
      ...toRefs(a)
    }
  }
@jelle-r
Copy link

jelle-r commented Jul 11, 2022

i have the same problem.

@github-actions
Copy link

github-actions bot commented Sep 9, 2022

Stale issue message

@xiaoxiangmoe
Copy link
Collaborator

@bigggge @jelle-r Can you provide me a minimal reproducible example?
How do this code perform on vue 3?

@jelle-r
Copy link

jelle-r commented Sep 14, 2022

I am not able to provide an example anymore, since we moved to the vue3 stack in the meantime.

@shrpne
Copy link

shrpne commented Nov 2, 2022

It may be related to #580

Test case: https://codesandbox.io/s/beautiful-feather-qrjq4n?file=/src/components/TestCase.vue
(computed property not updated)

@github-actions
Copy link

github-actions bot commented Jan 1, 2023

Stale issue message

@shrpne
Copy link

shrpne commented Jan 2, 2023

not stale

@github-actions
Copy link

github-actions bot commented Mar 4, 2023

Stale issue message

@shrpne
Copy link

shrpne commented Mar 5, 2023

not stale

@github-actions
Copy link

github-actions bot commented May 5, 2023

Stale issue message

@shrpne
Copy link

shrpne commented May 6, 2023

Not stale

@github-actions
Copy link

github-actions bot commented Jul 5, 2023

Stale issue message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants