Try green tea. Doesn't have or certainly reduces the effect.
That's odd,
I enjoy green tea but find for me it's a really powerful diuretic, more so than the strong black coffee I sometimes drink.
Must be something in it that triggers my " need to pee "