javascript - Receive action not getting all the properties sent from back end -
from backend, i'm sending object looks this:
{ userid: 1, firstname: 'zack', lastname: 'shapiro', finishedsetup: false, phone: undefined, organizationid: 5, email: 'testuser@example.com', admin: false, books: [array of books], authors: [array of authors], stores: [array of stores] } and yet in action, receiveusersetup, properties finishedsetup aren't present
export function receiveusersetup(user) { return { type: 'receiveusersetup', user }; } i can see them before return server action when receive data in react app, properties missing. idea why?
Comments
Post a Comment