Bug: SubmitBuilder<E> does not rebuild on cubit changes #28

Closed
opened 2022-11-15 05:40:47 +00:00 by hugo · 0 comments
Owner

SubmitBuilder<Cubit> must rebuild on the Cubit change:

Actually the work around is to add a watcher.

  Widget build(BuildContext context) {
    context.watch<SignUpCubit<Session>>(); // force a rebuild...
    return SubmitBuilder<SignUpCubit<Session>>(
    	builder: (context, cubit, status) => ...,
    );
  }
`SubmitBuilder<Cubit>` must rebuild on the `Cubit` change: Actually the work around is to add a watcher. ```dart Widget build(BuildContext context) { context.watch<SignUpCubit<Session>>(); // force a rebuild... return SubmitBuilder<SignUpCubit<Session>>( builder: (context, cubit, status) => ..., ); } ```
hugo closed this issue 2022-11-21 20:54:05 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Wyatt-FOSS/wyatt-packages#28
No description provided.