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

UseCaseBuilder is called with old context #180

Closed
jenshor opened this issue May 9, 2022 · 0 comments · Fixed by #181
Closed

UseCaseBuilder is called with old context #180

jenshor opened this issue May 9, 2022 · 0 comments · Fixed by #181
Assignees
Labels
t: bug Something isn't working

Comments

@jenshor
Copy link
Member

jenshor commented May 9, 2022

Description
If something is injected into the Widget tree via the use-case builder function, the build use-case references a context, which does not contain the injected widgets.

Steps To Reproduce

  1. Define e.g. a custom theme
  2. Inject a custom theme via the Widgetbook
  3. Obtain the data via .of(context).
  4. See error with null exception

Expected Behavior
Data is retrieved.

@jenshor jenshor added the t: bug Something isn't working label May 9, 2022
@jenshor jenshor self-assigned this May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant