create-react-ssr-app icon indicating copy to clipboard operation
create-react-ssr-app copied to clipboard

Implementing redux is not working, I get error unexpected token %

Open karoliskerpys opened this issue 7 years ago • 3 comments

Is this a bug report?

(write your answer here)

Did you try recovering your dependencies?

(Write your answer here.)

Which terms did you search for in User Guide?

(Write your answer here if relevant.)

Environment

(paste the output of the command here)

Steps to Reproduce

(Write your steps here:)

1. 2. 3.

Expected Behavior

(Write what you thought would happen.)

Actual Behavior

(Write what happened. Please add screenshots!)

Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

karoliskerpys avatar May 08 '19 11:05 karoliskerpys

@wickedsouls can you provide more info about the error? Also what are steps you took to add redux?

maxparelius avatar May 08 '19 14:05 maxparelius

Hello, i fixed that problem by replacing %PRELOADED_STATE% to PRELOADED_STATE in app.html file. Your compiler seems to work fine, but i am missing async fetching documentation with redux.

On Wed, 8 May 2019 at 17:41, Max Parelius [email protected] wrote:

@wickedsouls https://github.com/wickedsouls can you provide more info about the error? Also what are steps you took to add redux?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/trustworktech/create-react-ssr-app/issues/7#issuecomment-490514064, or mute the thread https://github.com/notifications/unsubscribe-auth/AGFBPJCADCKE43OISFOZS6LPULRCPANCNFSM4HLQUUQQ .

-- Karolis Kerpys www.ready2code.lt +370 647 01234 [email protected]

karoliskerpys avatar May 09 '19 09:05 karoliskerpys

@wickedsouls great. Ok yes I have not added info about data fetching as it is somewhat opinionative. One option is to use react-router to help with data fetching server side. There is some info in the react router docs on how to do this: https://reacttraining.com/react-router/web/guides/server-rendering/data-loading

maxparelius avatar May 09 '19 15:05 maxparelius