ouija-io / ouija

Communicating with ghosts
http://ouija.io
BSD 3-Clause "New" or "Revised" License
128 stars 14 forks source link

Ouija shows commenting form when loading #46

Closed halfdan closed 8 years ago

halfdan commented 10 years ago

Ouija seems to show the commenting form when clicking on the loading symbol before it has finished loading:

ouija-loading

Note: Bug shows at the end - had to CMD+R/clear content on that to make it show up.

colinmacdonald commented 10 years ago

Solution to this is to use the promise that gets resolved here: https://github.com/goinstant/ouija/blob/master/app/post.js#L57 in the handleControlsClick listener here: https://github.com/goinstant/ouija/blob/master/app/ouija.jsx#L130

It would delay opening the conversation block until the comments have been fetched.