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

push triggers pull, fix glitches #67

Merged
merged 2 commits into from
Sep 4, 2019
Merged

Conversation

limemloh
Copy link
Member

@limemloh limemloh commented Sep 4, 2019

This should PR changes how push works with Behaviors.
Push now triggers a pull, which ensures that all the dependencies are calculated first, eliminating glitches in Behaviors.

I have added two simple tests showing exposing glitches.

@codecov
Copy link

codecov bot commented Sep 4, 2019

Codecov Report

Merging #67 into master will decrease coverage by 0.21%.
The diff coverage is 96.96%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #67      +/-   ##
==========================================
- Coverage    95.7%   95.49%   -0.22%     
==========================================
  Files          13       13              
  Lines        1467     1465       -2     
  Branches      129      128       -1     
==========================================
- Hits         1404     1399       -5     
- Misses         63       66       +3
Impacted Files Coverage Δ
src/common.ts 97.53% <100%> (ø) ⬆️
src/placeholder.ts 91.13% <92.85%> (-3.53%) ⬇️
src/behavior.ts 98.17% <98%> (-0.03%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3b4a5ed...f22b3af. Read the comment docs.

src/behavior.ts Outdated Show resolved Hide resolved
src/behavior.ts Show resolved Hide resolved
src/placeholder.ts Outdated Show resolved Hide resolved
src/behavior.ts Outdated Show resolved Hide resolved
src/behavior.ts Show resolved Hide resolved
src/common.ts Outdated Show resolved Hide resolved
src/common.ts Outdated Show resolved Hide resolved
src/placeholder.ts Show resolved Hide resolved
test/behavior.ts Show resolved Hide resolved
Copy link
Member

@paldepind paldepind left a comment

Choose a reason for hiding this comment

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

Nice. Pretty sweet that glitched could be eliminated in this fairly elegant way 😃

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.

2 participants