We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
undefined is not an object(evaluating 'previous.value.path')
In the code below
const current = useSharedValue(graphs[0].data); const previous = useSharedValue(graphs[0].data);
The second useSharedValue doesn't return an object with a value property. Instead, it simple returns data object.
useSharedValue
data
I am accessing the path property like so: previous.path whereas it should be previous.value.path
path
previous.path
previous.value.path
Whichever variable is declared last gets this error. So, if current was declared after previous, then current will be getting this error
current
previous
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Error
undefined is not an object(evaluating 'previous.value.path')
Steps to reproduce
In the code below
The second
useSharedValue
doesn't return an object with a value property. Instead, it simple returnsdata
object.Expected Behavior
I am accessing the
path
property like so:previous.path
whereas it should beprevious.value.path
Additional
Whichever variable is declared last gets this error. So, if
current
was declared afterprevious
, thencurrent
will be getting this errorThe text was updated successfully, but these errors were encountered: