Comments (9)
The work around is to restart your rails server until we push a fix. Note, this only applies if you are using server rendering, which is the option prerender: true
.
from react_on_rails.
@rstudner, (CC: @jbhatab) please create branch with these 2 commits:
This is a fix, but the logic needs to move: 66b7408#diff-741e57aaaefab9559b7892657ec8c75eR175
@jbhatab can help.
We want to get this in ASAP and push a fix to the gem! Maybe even before the generator is done.
from react_on_rails.
@rstudner here's the link to the commit where we auto reset the pool for server bundles. 66b7408
from react_on_rails.
Add this commit to the list as well: 534c9af
from react_on_rails.
Okay, quick question (sorry, I couldn't do this last night -- solo parent duty with 1 kid with pneumonia hah)
So, 7a7dd68 basically "is" the merge commit for the generators.
Then we have 66b7408 which appears to add the server.js reloading behavior for development.
So is this "branch" a branch off master, that has all the generator stuff merged into it, plus 66b7408, plus 534c9af.
Just want to make sure I'm reading the above right before I go smoosh it all together :)
from react_on_rails.
@rstudner I don't know why 7a7dd68 is named what it is or why Justin said that it was involved with this issue as I don't think it actually is (unless I'm missing something @justin808 ?).
Basically what we're trying to do is separate the task of adding generators, which goes in the add-generators branch, with the task of fixing a bug that causes the server to not reload the server-bundle when it gets changed in development.
So the idea is to create a new branch based on the current master, something like server-reload-bundle-fix
or whatever, then cherry pick the changes identified below. We are eventually going to squash everything in the add-generators branch, and the bug fix to the server-reloading is really not related so we don't want them to be stuck in the same branch together as they currently are.
- 66b7408 but only the changes in these files:
app/helpers/react_on_rails_helper.rb
lib/react_on_rails/configuration.rb
- also see Justin's comments on that commit
- 534c9af everything but:
lib/generators/react_on_rails/generator_helper.rb
@justin808 Be advised, this fix relies on 66b7408#diff-9fd0fe78c2be3d73b04b3875942fd740R13 being in the users' initializer. If it is missing, it shouldn't break, but it won't fix the problem, either.
from react_on_rails.
@robwise thanks for the heads up. I mostly have that done, I just have to clean out a couple things (generator_helper) etc. Will push it up in just a bit.
from react_on_rails.
@rstudner Nice!!!
from react_on_rails.
Fixed.
from react_on_rails.
Related Issues (20)
- Concurrency performance HOT 3
- When server-bundle.js register a lot of server render components making the server render performance reduce big HOT 2
- Remove `request_digest` from `render_options` for version 14 HOT 1
- Convert spec/dummy/client to Typescript
- Change primary branch name from `master` to `main` HOT 2
- Add support for Vite
- Fix CI failure
- Server side rendering window behaves differently than Node.js? HOT 7
- React Component won't mount until all assets are loaded HOT 2
- Adjustment of Minimum Required Ruby Version for Versions 12.5.x HOT 5
- Webpacker constants still being referenced HOT 1
- Clarification and reorganization of test conditions in configuration specs HOT 2
- `react_on_rails:generate_packs` should add the import statement to the entry point even if the packs already exist
- Bump Rescript in examples due to build-time errors HOT 2
- How to refresh CSRF token? HOT 4
- uninitialized constant `ReactOnRails::Configuration::Webpacker` HOT 4
- Running `react_on_rails:install` is not compatible with Shakapacker v8 HOT 1
- Add lock file for creating packs
- Update doc for the auto bundles
- Update docs for react_router using SSR HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react_on_rails.