react-native-worklets-core
react-native-worklets-core copied to clipboard
Unable to Delete Key from useSharedValue Object
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',
}
*/