I'm thinking I could make a kind of contract that can make serial story on blockchain(using solidity and Remix). So I want to know the way how to detect whether "someone already added a story to previous one or not" in real time at the place like Remix.
1, function getPreviousStory() : returns previous story
2, function getState() : returns bool (will be false when someone is executing addStory() function and the transaction still not mined. will be true when anyone isn't executing addStory and not generating transaction)
3, function addStory(string story) : fire a Write event and send a new story if getState() returns true now. If getState() returns false, addStory() failes to avoid deprecated.