Make sure you can set state even as a writer