reduxjs/redux

setInterval is not defined for execsjs

justin808 opened this issue · 2 comments

See comment here:

e2e14d2#diff-1fdf421c05c1140f6d71444ea2b27638

Copied here:

@gaearon This change of referencing setInterval broke server rendering for https://github.com/shakacode/react_on_rails/ as running this code through execjs fails because setInterval is not defined, per this [FAQ for execjs]( (https://github.com/sstephenson/execjs#faq).

I'll polyfill this for now, but I recommend that you change the line to:

setInterval && setInterval.name === 'setInterval'

References:

I polyfilled this here: shakacode/react_on_rails@59f1e68

Fixed in 3.1.7, thanks for reporting.