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

Bug fix: Fix errorWidget on dart DDC (web) #950

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

JustusFluegel
Copy link

@JustusFluegel JustusFluegel commented Jun 5, 2024

✨ What kind of change does this PR introduce? (Bug fix, feature, docs update...)

Bug fix: The errorWidget would never be displayed when running using DDC (dart web) and the HttpGet option, which happens because the catch block currently never gets executed when using streams with await for on dart DDC.
As such this pr refactors the file to use a StreamController instead, re-implementing the original behavior.

⤵️ What is the current behavior?

Placeholder stays displayed even if a error response (e.g. 404) happened, when running using DDC

💥 Does this PR introduce a breaking change?

No, this is a pure bug fix.

🐛 Recommendations for testing

Maybe add a DDC test suite? idk

📝 Links to relevant issues/docs

🤔 Checklist before submitting

  • All projects build
  • Follows style guide lines (code style guide)
  • Relevant documentation was updated
  • Rebased onto current develop

@JustusFluegel JustusFluegel changed the title Refactor for await in web runtime to streamcontroller Bug fix: Fix errorWidget on dart DDC (web) Jun 5, 2024
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.

None yet

1 participant