Suppose you're working on a lengthy text that you would like to publish as a book or a "research monograph". For example in mathematics stuff like Springer Lecture Notes, Memoirs of the AMS, or any other book series.
Then say you upload a preliminary version of the book somewhere, say arXiv (with the usual non-exclusive arXiv license), or to your personal website. Is there any issue with this, if later you want to submit to a publisher? I am wondering how common it would that a publisher would desk reject your book, if it is already on the arXiv. Most of the publishers do not seem to provide this kind of information very clearly.
And if later you publish, do the agreements with the publisher usually allow you to update your arXiv draft with corrections?
Of course it is best to confirm directly with the publisher that one wants to work with. But I would be interested in any general advice or anecdotes on these issues, especially in the fields of mathematics and physics. I have seen several authors who put all their papers on arXiv, but do not upload books/monographs.