programrails

Results 8 comments of programrails

Just put in your Gemfile this line: gem 'carrierwave-dropbox', :git => 'https://github.com/robin850/carrierwave-dropbox.git', :tag => 'v2.0.0.rc1'

@reywright 1. I must set up the Redux store server-side first - and it's not empty, this a list of companies. 2. Only then I render my component server-side -...

@ttanimichi How about transferring the Redux store client-side and `hydrate`ing it there?

@ttanimichi > Hydration is a matter of React’s SSR and it’s not related to Redux stroe. By 'hydration' I meant this: https://redux.js.org/recipes/serverrendering#client-js > This gem hydrates components automatically. Surprisingly, looks...

@ttanimichi > it just doubles dispatching - both server-side and client-side? > Yes. If you have any confirming references to this statement, it would be nice to see them. Not...

**catmando** This one? https://github.com/ruby-hyperloop/hyper-react/blob/master/lib/reactive-ruby/isomorphic_helpers.rb I haven't seen anything applicable there. JS server-side fetch is really necessary - to optimize the Rails data loading on SSR. Currently I have to pre-load...

Same result: **lib/appstate_renderer.rb** ``` module React module ServerRendering class AppstateRenderer < BundleRenderer def render(component_name, props, prerender_options) html = super(component_name, props, prerender_options) script_html = ActiveSupport::SafeBuffer.new ".block-color {color: black;}" html = script_html...

That looks interesting, but how do you get the Rails data from INSIDE server-rendered js? When I used client-rendered SPA I used the code like that: ``` componentDidMount() { axios.get('/companies.json').then(response...