79457765

Date: 2025-02-21 15:02:10
Score: 1
Natty:
Report link

Any reason to use it in initSate() ?

Use ref.watch(userDataNotifierProvider) in build function of your Widget.

You are printing the results before even network is fetching data.

With ref.watch() when your data is available widget rebuilds if its already been built.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: pbs_mhl