Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need working sample action/reducer from within /src/app/component #58

Closed
stevenmatison opened this issue Dec 19, 2017 · 7 comments
Closed

Comments

@stevenmatison
Copy link

stevenmatison commented Dec 19, 2017

Hi, I am working with this boilerplate and struggling to get an action/reducer working for a userProfile component. The best I can get so far is setting my initial state with default data. These defaults are persisting after the actions complete. When executing the action (includes an api call to get the real userProfile data) I can see the data response and see it pass through my reducer and the lodash assign but it is not replacing the initial state when state is connected in a separate component.

I would like to see a basic working sample inside of a /src/app/component/ that works with the global state. The only action/reducer that appears to be part of react-pwa is in the fileset as /core/src/app/component/screen.

Thanks,

Steven

@tirthbodawala
Copy link
Member

Hi @stevenmatison I will definitely send you a working example of redux, will add an example in boilerplate. Thanks for your patience.

@stevenmatison
Copy link
Author

Thank you. With the working userProfile we should be pushing this out into production in January.

I really appreciate all your hard work on this boilerplate.

@tirthbodawala
Copy link
Member

Thanks @stevenmatison We are loving it when we see it in action, Do share the URL of production will include in README.md win-win 👍

@stevenmatison
Copy link
Author

stevenmatison commented Dec 20, 2017

I will delete these later but:

https://stevenm.cogobox.com:3003/settings/?id=701
https://stevenm.cogobox.com:3003/settings/?email=steven@sceneserver.net
https://stevenm.cogobox.com:3003/settings/?phone=13218484926
https://stevenm.cogobox.com:3003/settings/?mac=F4:5C:89:99:35:F9

this is running "npm start" as such much of the pwa basics are not operating. I have discovered that when I do 'npm run build && node dist/server.js' that styling is blown away with some giant padding around the Dom body

@tirthbodawala
Copy link
Member

@stevenmatison Please join us on Gitter:
https://gitter.im/react-pwa/Lobby We can definitely assist more with chat :)

@yash-thakur
Copy link
Contributor

#60 I have added the redux example you can have a look at it.

@stevenmatison
Copy link
Author

Thank you so much!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants