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

[web][fix] Add setValue to InternalAnimatedValue #532

Merged

Conversation

EvanBacon
Copy link
Contributor

- fix software-mansion#481
- add errors for better hints when types are passed incorrectly
@osdnk osdnk merged commit aacc353 into software-mansion:master Jan 2, 2020
Copy link
Member

@jakub-gonet jakub-gonet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR 🎉

It didn't fix all issues related to web version (see video), but it's a step in a good direction.
test

@@ -18,11 +18,17 @@ export class AnimatedParam extends AnimatedNode {
}

setValue(value) {
if (!this.argsStack.length) throw new Error(`param: setValue(${value}) failed because argsStack is empty`);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nitpick, IMO this.argsStack.length === 0 would be better here

__onEvaluate() {
if (!this.argsStack.length) throw new Error(`param: __onEvaluate() failed because argsStack is empty`);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^

@EvanBacon EvanBacon deleted the @evanbacon/web/fix-set-value branch January 3, 2020 02:20
@EvanBacon
Copy link
Contributor Author

ya web support is still very unstable but at least the problems can be addressed now.

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

Successfully merging this pull request may close these issues.

How to run examples in Web?
3 participants