I'm trying to replace vinegar with sodium diacetate in a recipe, and I would like to understand better what is happening from a chemical point of view.
What I imagine happens when I add sodium diacetate to the pot:
$$\ce{NaH(C2H3O2)2 + H2O -> (C2H4O2)2 + NaOH}$$
But what happens to the sodium hydroxide? It's alkaline in a acidic solution so it should react somehow?
Also if I know that $\pu{100 ml}$ of vinegar contains $\pu{4 g}$ of acetic acid, how much sodium diacetate should I add to substitute the vinegar?