Store selected state of documents that are reactive, so that if a user removes a document that another user has selected the latter's client is updated properly.