1

I have a sidekiq jobs in my rails application.
And I have a few react components on my site.

How can I make my rails app page automatically update after the sidekiq job succeeds?

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Alex Antonov
  • 14,134
  • 7
  • 65
  • 142
  • Not familiar with Ruby or Sidekiq but why can't this process have a callback function that either renders the React component directly and or wrap all the React.render() calls into a single function and call that? – Chris Hawkes Apr 09 '15 at 12:34
  • take a look at https://github.com/chrismccord/sync – MZaragoza Apr 09 '15 at 12:43
  • @MZaragoza hm.. this is solution, but this isn't good thing. How reactjs will react on dom changing without virtual DOM changing? – Alex Antonov Apr 09 '15 at 14:09

1 Answers1

0

I think that best way is to send websocket to react. So, react should listen for a websockets.

Alex Antonov
  • 14,134
  • 7
  • 65
  • 142