You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When developing and hot reloading the app changes inside the TripleBuilder does not change (the builder function is not called) until a state change (update, setLoading, setError) happen.
I know it does not affect production code, once there is not hot reload in it, but it does make it harder to develop using TripleBuilder. ScopedBuilder works fine in hot reload.
Environment
flutter_triple: 3.0.0
To Reproduce
Run the following in dev mode, change anything inside the TripleBuilder and hot reload
classAppStoreextendsStore<int> {
AppStore() :super(0);
voidincrement() =>update(state +1);
}
classAppWidgetextendsStatefulWidget {
constAppWidget({super.key});
@overrideState<AppWidget> createState() =>_AppWidgetState();
}
class_AppWidgetStateextendsState<AppWidget> {
final store =AppStore();
@overrideWidgetbuild(BuildContext context) {
returnScaffold(
body:TripleBuilder(
store: store,
builder: (context, _) {
returnColumn(
mainAxisAlignment:MainAxisAlignment.center,
children: [
// comment the first text, uncomment the second and hot reloadCenter(
child:Text("Value: ${store.state}"),
// child: Text("Reloaded value: ${store.state}"),
),
constSizedBox(height:12),
ElevatedButton(
onPressed: () => store.increment(),
child:constText("Increment"),
),
],
);
},
),
);
}
}
Expected behavior
Hot reload runs the builder function again
The text was updated successfully, but these errors were encountered:
Describe the bug
When developing and hot reloading the app changes inside the
TripleBuilder
does not change (the builder function is not called) until a state change (update, setLoading, setError) happen.I know it does not affect production code, once there is not hot reload in it, but it does make it harder to develop using
TripleBuilder
.ScopedBuilder
works fine in hot reload.Environment
flutter_triple: 3.0.0
To Reproduce
Run the following in dev mode, change anything inside the TripleBuilder and hot reload
Expected behavior
Hot reload runs the builder function again
The text was updated successfully, but these errors were encountered: