briebug / ngrx-auto-entity

NgRx Auto-Entity: Simplifying Reactive State
https://briebug.gitbook.io/ngrx-auto-entity/
Other
66 stars 12 forks source link

Apply transforms in reverse order when going toServer #179

Closed jrista closed 2 years ago

jrista commented 3 years ago

Currently, transforms are applied in specified order for both fromServer and toServer. This works fine when data is coming from the server, however if there are any dependencies between transforms (i.e. progressive transformation by different individual transforms), then processing in specified order when sending to server is incorrect.

Processing order must be in reverse order when sending data to the server, to ensure the code can "work backwards" from the client-side version, to the proper server-side version.