Gutenberg: useDispatch is not a function – @wordpress/data included

I used to have the same problem. After I updated WordPress, window.wp.data.useDispatch was available.

I’m guessing you also have an out of date WordPress / Gutenberg

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)