Commit 8c28fba
committed
No need to hydrate identity model twice
* I noticed we were always hydrating the same identity model twice.
* This is because we are parsing a fetch user response, we end up hydrating the identity model twice, unnecessarily, which drives caching it twice as well.
* We already hydrate the identity model attached to the request.
* Here, we were hydrating it again if the current user is the same. However, if the current user is the same, the model is the same and has already been hydrated.1 parent 8cdf446 commit 8c28fba
File tree
1 file changed
+0
-4
lines changed- iOS_SDK/OneSignalSDK/OneSignalUser/Source/Executors
1 file changed
+0
-4
lines changedLines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | 523 | | |
528 | 524 | | |
529 | 525 | | |
| |||
0 commit comments