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

Props Mutation and Object freezing #38

Open
Hen2609 opened this issue Dec 6, 2022 · 0 comments
Open

Props Mutation and Object freezing #38

Hen2609 opened this issue Dec 6, 2022 · 0 comments

Comments

@Hen2609
Copy link

Hen2609 commented Dec 6, 2022

Version: 0.6.1

Details

I was trying to mutate var tags through multiple ways, each way works as expected on the playground but not on local

Your Environment

macOs 13.0.1
node: 16.17

Steps to Reproduce

  1. mutating through props:
    github repo
    playground link
    in this example I mutate the object through props and I used a button to log the current state to see it reflected in the original object
  2. playground link - in this example I modify an array using pop. in local it throws an error can't change read only property 'length' of object.
  3. playground link - Trying to intialize array in the onMount hook, gets an error on local saying: "cannot add property 0, object is not extensible"

for examples 2 and 3, can be reproduced using the same repo in example 1

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

No branches or pull requests

1 participant