root-systems / dogstack

:dog: :dog: :dog: a popular-choice grab-bag framework for teams working on production web apps
https://dogstack.js.org/
25 stars 7 forks source link

normalise the return of services and handle with redux, unsure if thi… #1

Closed iainkirkpatrick closed 7 years ago

iainkirkpatrick commented 7 years ago

…s is just complexity

@ahdinosaur i'm keen for your opinion on this small change - basically trying to emulate your advice + how i recall co-nnection working, where the server returns data in a normalised form. Any thoughts as to whether this is better than just normalising on the client-side? I guess it initially feels quite opinionated to me to entrench the normalisation from the server upwards...

i imagine we might want to handle a lot of this with code like feathers-action on the client-side, and similar on server-side eventually, just trying to get basics down now. Comments welcome 🐶

ahdinosaur commented 7 years ago

basically trying to emulate your advice + how i recall co-nnection working, where the server returns data in a normalised form

is this how we did it? i thought we used feathers-action@1 which normalized it on the client-side.

i imagine we might want to handle a lot of this with code like feathers-action on the client-side, and similar on server-side eventually, just trying to get basics down now.

yeah, i think we should just use feather-action to do this automatically for us on the client-side.

iainkirkpatrick commented 7 years ago

cool - sounds good to me, closing this :)