Committed by
GitHub
Merge pull request #1358 from Undeadlol1/patch-1
fix(docs): typos
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -264,7 +264,7 @@ And then, you checked if a user is "logged in" to trigger an event in `ever` . | @@ -264,7 +264,7 @@ And then, you checked if a user is "logged in" to trigger an event in `ever` . | ||
264 | 264 | ||
265 | ``` dart | 265 | ``` dart |
266 | @override | 266 | @override |
267 | -onInit(){ | 267 | +onInit() async { |
268 | ever(isLogged, fireRoute); | 268 | ever(isLogged, fireRoute); |
269 | isLogged.value = await Preferences.hasToken(); | 269 | isLogged.value = await Preferences.hasToken(); |
270 | } | 270 | } |
@@ -776,7 +776,7 @@ In a decade working with programming I was able to learn some valuable lessons. | @@ -776,7 +776,7 @@ In a decade working with programming I was able to learn some valuable lessons. | ||
776 | My first contact with reactive programming was so "wow, this is incredible" and in fact reactive programming is incredible. | 776 | My first contact with reactive programming was so "wow, this is incredible" and in fact reactive programming is incredible. |
777 | However, it is not suitable for all situations. Often all you need is to change the state of 2 or 3 widgets at the same time, or an ephemeral change of state, in which case reactive programming is not bad, but it is not appropriate. | 777 | However, it is not suitable for all situations. Often all you need is to change the state of 2 or 3 widgets at the same time, or an ephemeral change of state, in which case reactive programming is not bad, but it is not appropriate. |
778 | 778 | ||
779 | -Reactive programming has a higher consumption of RAM consumption that can be compensated for by the individual workflow, which will ensure that only one widget is rebuilt and when necessary, but creating a list with 80 objects, each with several streams is not a good one idea. Open the dart inspect and check how much a StreamBuilder consumes, and you'll understand what I'm trying to tell you. | 779 | +Reactive programming has a higher RAM consumption that can be compensated for by the individual workflow, which will ensure that only one widget is rebuilt and when necessary, but creating a list with 80 objects, each with several streams is not a good one idea. Open the dart inspect and check how much a StreamBuilder consumes, and you'll understand what I'm trying to tell you. |
780 | 780 | ||
781 | With that in mind, I created the simple state manager. It is simple, and that is exactly what you should demand from it: updating state in blocks in a simple way, and in the most economical way. | 781 | With that in mind, I created the simple state manager. It is simple, and that is exactly what you should demand from it: updating state in blocks in a simple way, and in the most economical way. |
782 | 782 |
-
Please register or login to post a comment