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

fix reactive declaration cycle detection + clearer error on cycle #3516

Merged
merged 1 commit into from
Sep 7, 2019

Conversation

colincasey
Copy link
Contributor

  • fixes Cycle detection is broken #3459
  • uses DFS traversal to inspect reactive declarations for cycles
  • returns the cycle detected (e.g.; a → b → a) for error messaging

- fixes sveltejs#3459
- uses DFS traversal to inspect reactive declarations for cycles
- returns the cycle detected (e.g.; `a → b → a`) for error messaging
@codecov-io
Copy link

codecov-io commented Sep 6, 2019

Codecov Report

Merging #3516 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3516   +/-   ##
=======================================
  Coverage   50.25%   50.25%           
=======================================
  Files           1        1           
  Lines         197      197           
=======================================
  Hits           99       99           
  Misses         98       98

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 cc10714...ee8825d. Read the comment docs.

@Rich-Harris Rich-Harris merged commit ee8825d into sveltejs:master Sep 7, 2019
@Rich-Harris
Copy link
Member

Thank you! This is great. I just made one small change, for consistency — checkGraphForCycles --> check_graph_for_cycles 😉

@colincasey colincasey deleted the bug/broken_cycle_detection branch September 7, 2019 15:11
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.

Cycle detection is broken
3 participants