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

Rainbow Charts: one of the sharedValues does not have the value property. #162

Open
amaankulshreshtha opened this issue Sep 2, 2021 · 0 comments

Comments

@amaankulshreshtha
Copy link

Error

undefined is not an object(evaluating 'previous.value.path')

Steps to reproduce

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.

Expected Behavior

I am accessing the path property like so: previous.path whereas it should be previous.value.path

Additional

Whichever variable is declared last gets this error. So, if current was declared after previous, then current will be getting this error

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