About Łukasz Grela

I am an actionscript programmer on daily basis, I am doing it for 10 years now and still doesn't have enough:) I also like to take pictures but it is so amateurish that I hardly ever show it to anyone:) I like to read, sci-fi mostly and fantasy (LOTR), and whenever I have time I am doing it, the problem is time:) I love music, but not just music but The Music, I have my preferences i.e. rock but if it is The Music then gender doesn't matter.

Chrome Extension with React – gotcha

I’m rebuilding my Chrome Extension Tab List to use ReactJS (as part of my learning trip) and encountered following error:

Uncaught EvalError: Refused to evaluate a string as JavaScript because ‘unsafe-eval’ is not an allowed source of script in the following Content Security Policy directive: “script-src ‘self’ blob: filesystem: chrome-extension-resource:”.

Continue reading

Order of Higher Order Components (HOC) matters

I’ve just learned the hard way that order of calling Higher Order Components (HOC) matters and can lead to hard to debug errors. I’ve used the Redux and React Router Dom. Started with Redux so I had component like so:

import react, {Component} from 'react'
import connect from 'react-redux/lib/connect/connect';

class Home extends Component {
    // ... chopped for brevity

export default connect(mapStateToProps)(Home);

Continue reading