One ref.watch and rebuild general screen vs multiple ref.watch on small sub-screen sections #3300
AndroidDesigner
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone.
I have a
ConsumerStatefulWidget
screen (called A) consisting of multiple sub-views (ConsumerStatefulWidget or ConsumerWidget).I'm getting a big json data from server every 1 second and saving it in a
StateProvider
.I wanna update screen A each time a new json is received from the server.
So, which one is better?
is there any difference between two above solutions?
Beta Was this translation helpful? Give feedback.
All reactions