A mangrove tree drinks water from soil that is as salty as the sea, which should be impossible for an ordinary plant: the osmotic pressure of seawater is about 2.6 MPa, so the water in the xylem has to be pulled under a tension larger than that. Mangrove roots help by acting as a reverse-osmosis membrane. Water passes, and most of the salt is turned back at the root surface, quantified by the reflection coefficient sigma. The cost is paid in tension, which lowers the leaf water potential, closes the stomata and slows carbon gain.
The rejected salt does not vanish. It piles up in a thin unstirred layer around each root and, over days, in the pore water, unless tides or rain flush it away. This page follows that budget with a film model, a stomatal and cavitation response, and the pore-water salt balance, so you can see which combination of salinity, filter quality, dry air and flushing pushes a tree past the limit of its xylem.