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 refresh breaking when story produces an error. #25

Merged
merged 1 commit into from
Nov 5, 2021
Merged

Fix refresh breaking when story produces an error. #25

merged 1 commit into from
Nov 5, 2021

Conversation

Anaminus
Copy link
Contributor

@Anaminus Anaminus commented Nov 3, 2021

When a story throws an error, the live refresh fails until the user
reselects the story. This happens because the setup of the Changed
event occurs after parsing the story source. If parsing fails, then the
function returns before the Changed event is ever set up.

This change simply moves setup of the Changed event to occur before
parsing.

When a story throws an error, the live refresh fails until the user
reselects the story. This happens because the setup of the Changed
event occurs after parsing the story source. If parsing fails, then the
function returns before the Changed event is ever set up.

This change simply moves setup of the Changed event to occur before
parsing.
@Kampfkarren
Copy link
Owner

Great catch! This has always bugged the heck out of me

@Kampfkarren Kampfkarren merged commit 90f9812 into Kampfkarren:master Nov 5, 2021
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