GithubHelp home page GithubHelp logo

Comments (9)

justin808 avatar justin808 commented on June 24, 2024

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.

justin808 avatar justin808 commented on June 24, 2024

@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.

jbhatab avatar jbhatab commented on June 24, 2024

@rstudner here's the link to the commit where we auto reset the pool for server bundles. 66b7408

from react_on_rails.

robwise avatar robwise commented on June 24, 2024

Add this commit to the list as well: 534c9af

from react_on_rails.

rstudner avatar rstudner commented on June 24, 2024

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.

robwise avatar robwise commented on June 24, 2024

@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.

rstudner avatar rstudner commented on June 24, 2024

@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.

robwise avatar robwise commented on June 24, 2024

@rstudner Nice!!!

from react_on_rails.

justin808 avatar justin808 commented on June 24, 2024

Fixed.

from react_on_rails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.