Adding too much salt before cooking can draw out the water in the squash, causing it to be soggy. Overcooking will also cause sogginess.