In Riverpods, is it ok to nest ConsumerWidgets? Something like this? I want to do so to keep my apis separated, but it feels like it might slow down performance?
class Foo1 extends ConsumerWidget {
@override
Widget build(BuildContext context, ScopedReader watch) {
// watch something
return Container(
child: Foo2(),
);
}
}
class Foo2 extends ConsumerWidget {
@override
// watch something
Widget build(BuildContext context, ScopedReader watch) {
return Container();
}
}