r/learnreactjs • • Aug 10 '22

why doesnt localhost reflect my changes after clearing cache with my Reactjs app

I originally posted on /reactjs

Things you should know:

I am deploying to netlify and my apps stack is reactjs front end with a rails backend.

I have a monorepo structure and my client is nested in my backend

using foreman with the foreman start -f
Procfile.dev command to start my app.

Summary:

When I run netlify dev --live the app loads fine with my new changes through netlify but since I am using foreman nothing seems to update.

Things I have tried:

Deleting my package-lock.json
and npm install
again

Reaching out to netlify support (waiting to hear back)

clearing / emptying my browser cache

git rebasing
to a commit where my localhost wasn't caching

Thoughts on this?

4 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/Parking_Landscape396 Aug 11 '22 edited Aug 12 '22

thanks (netlify) they do in fact support monorepos. Check it out here

I prefer to keep it as a monorepo so I'll consider heroku if all else fails.

3

u/ck108860 Aug 11 '22

That link is saying that Netlify supports building your website assets only in a monorepo structure (say you had a utility package in your monorepo that you used in the React app, or multiple websites). It will not build and run your rails code.