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
Copy file name to clipboardExpand all lines: packages/flowr/README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,6 +94,14 @@ class CounterPage extends StatelessWidget {
94
94
95
95
`FlowR` follows bloc equality semantics. Do not rely on in-place model mutation plus `put/update`; return a new state instance when the UI should rebuild.
96
96
97
+
For immutable page state modeled with Freezed, `flowr` also exports two
98
+
recommended presets:
99
+
100
+
-`@FrState`: enables `toJson()` for debug snapshots without implying restore
101
+
semantics.
102
+
-`@FrStateJson`: enables both `toJson()` and `fromJson()` for state that must
103
+
be restored from serialized JSON.
104
+
97
105
For GetIt DI, register a ViewModel and then read it with `context.read<T>()`.
98
106
`context.read<T>()` reads Provider first, then GetIt.
0 commit comments