jkettmann / relay-authentication

An example app demonstrating role based authentication and file upload with Relay and GraphQL.
MIT License
152 stars 24 forks source link

Error after upload #1

Closed cyberwombat closed 8 years ago

cyberwombat commented 8 years ago

After creating a new post as publisher the list of post yields this error:

[Error] Warning: setState(...): Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props 
[Error] TypeError: null is not an object (evaluating 'props.viewer.post.title')
jkettmann commented 8 years ago

Thanks for your interest. I can reproduce the issue. I'll probably have a look at it tomorrow.

jkettmann commented 8 years ago

Please check again. I realized that my error message was a bit different and the error occurred on the posts detail page.

cyberwombat commented 8 years ago

The second error is gone and that was the showstopper. It now works though I still get the first warning. For example right after login (on that note I have to press twice on the login button for it to work - safari latest)

jkettmann commented 8 years ago

Great. That first warning is react related. I will have to clean up the project anyway at some point. Some things are still quite dirty. For now I just don't have the time