react_on_rails
react_on_rails copied to clipboard
Integration of React + Webpack + Rails + rails/webpacker including server-side rendering of React, enabling a better developer experience and faster client performance.
The current docs for react-router are outdated and incomplete: https://www.shakacode.com/react-on-rails/docs/javascript/react-router/ It would be great to update the following: - Update to use React router v7 - Update redux to use...
### Summary Support React On Rails w/Hotwire and Turbo Streams https://github.com/shakacode/react_on_rails/issues/1493, https://github.com/shakacode/react_on_rails/issues/1508 All turbo events (turbo:before-render, turbo:render,.. ) will not dispatch with TurboStream, except [turbo:before-stream-render](https://github.com/hotwired/turbo-rails/blob/main/app/assets/javascripts/turbo.js#L5071). And it looks like turbo-rails...
https://github.com/shakacode/react_on_rails/blob/master/docs/guides/file-system-based-automated-bundle-generation.md We need to include the instructions on the modification of bin/shakapacker and bin/shakapacker-dev-server.
```ruby ReactOnRails::PacksGenerator.instance.generate_packs_if_stale ``` Have this call create a lock file so it can't run concurrently. The lock file should expire within a short time. Here is how to do this:...
I am using `ReactOnRails.authenticityToken();` to get the CSRF token generated by `csrf_meta_tags`. The problem is that when I send first request, it works fine as the token is valid. Whenever...
### Summary _Remove this paragraph and provide a general description of the code changes in your pull request... were there any bugs you had fixed? If so, mention them. If...
### Summary This TypeScript file implements server-side rendering (SSR) for React components, with a focus on streaming the rendered output. Let me explain the sections related to streaming and how...
### Summary https://github.com/user-attachments/assets/37219d9c-0c74-4472-9a18-6ffd8da9d20f _Remove this paragraph and provide a general description of the code changes in your pull request... were there any bugs you had fixed? If so, mention them....
### Summary _Remove this paragraph and provide a general description of the code changes in your pull request... were there any bugs you had fixed? If so, mention them. If...
**Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] **Describe the solution you'd...