C
C
Cyril2020-05-19 12:57:02
ruby
Cyril, 2020-05-19 12:57:02

How to use redux-saga and redux in react-rails prerender?

Almost every SPA application uses redux-saga and redux to interact with the backend.
There was a question to give some parts of the application with pre-rendering using the react-rails gem.
All backing is based on RoR.

How to use prerendering in React components that use redux-saga ? Should I make an alternative version of the React Component for prerendering?

Simply put, the same React component (let's say a product catalog) must be shown to the user and the search bot. How to do this if the React component uses redux-saga to get product information from the server? It doesn't work in prerendering.

Thanks in advance

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question