react-native-worklets-core icon indicating copy to clipboard operation
react-native-worklets-core copied to clipboard

Unable to Delete Key from useSharedValue Object

Open eumaninho54 opened this issue 10 months ago • 0 comments

When trying to delete a key from an object in useSharedValue, nothing happens. Is this functionality missing?

const objectTest = useSharedValue<Record<string, string>>({ id: '1', name: 'hi' });

delete objectTest.value['id']; // This does not delete the "id" key.

console.log(objectTest.value);
/**
{
   id: '1',
   name: 'hi',
}
*/

eumaninho54 avatar Feb 24 '25 00:02 eumaninho54