tags-api-preview
tags-api-preview copied to clipboard
Props Mutation and Object freezing
Version: 0.6.1
Details
I was trying to mutate
Your Environment
macOs 13.0.1 node: 16.17
Steps to Reproduce
- 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
- 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.
- 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