AnomalyInnovations / serverless-stack-demo-client

Source for the demo app client in the Serverless Stack Guide
https://demo2.serverless-stack.com
MIT License
636 stars 204 forks source link

Why is the routes.js in the browser different to the one in the repo? #47

Closed TheNicholasNick closed 5 years ago

TheNicholasNick commented 5 years ago

See the screenshot - does all this Async magic get rejigged around on the fly or something?

image

jayair commented 5 years ago

Isn't this the same as the one in the repo?

https://github.com/AnomalyInnovations/serverless-stack-demo-client/blob/master/src/Routes.js

TheNicholasNick commented 5 years ago

it is lol - I'm sure I have seen an asyncComponent in a repo like in the tutorials - will see where i've taken a right turn instead of a left and get back to this issue.

jayair commented 5 years ago

We have multiple branches for different chapters. So that is probably what you saw. But master is deployed to the demo app.

TheNicholasNick commented 5 years ago

OK I see now

https://serverless-stack.com/chapters/code-splitting-in-create-react-app.html

So the demo link on that page seems to use the code-spliting-branch as chunks show up in the network tab.

wonder why chrome shows a different routes.js then - without the asyncComponent