arqex / freezer

A tree data structure that emits events on updates, even if the modification is triggered by one of the leaves, making it easier to think in a reactive way.
MIT License
1.28k stars 56 forks source link

"postMessage" error in react-native #56

Closed yannisgu closed 8 years ago

yannisgu commented 8 years ago

Currently there is a bug in freezer when used in react-native. The error comes from here: https://github.com/arqex/freezer/blob/master/src/utils.js#L63

Error Message: TypeError: Failed to execute 'postMessage' on 'DedicatedWorkerGlobalScope': The 2nd argument is neither an array, nor does it have indexed properties.

arqex commented 8 years ago

Hi @yannisgu

Thanks for spot the issue. I have just updated freezer trying to solve this but, unfortunatelly, using windows I can't use react-native yet and I can't check if the change is working.

Could you update your freezer install to v0.9.3 and try if this is fixed?

Thanks, Javi

yannisgu commented 8 years ago

Hi Javi

0.9.3 fixed the problem, thank you very much!