While reading Introduction to Electrodynamics by David J. Griffiths I encountered a problem regarding the time derivative of the electric dipole moment. I wanted to find the conditions when the time derivative of dipole moment is $0$. I concluded that one of the conditions is the magneto-static condition i.e. $\nabla \cdot\mathbf{J} = 0$:
$$\nabla \cdot\mathbf{J}=-\frac{\partial \rho}{\partial t}$$
Then we can express the time derivative of the dipole moment $\mathbf{p}$: $$\frac{\text{d}\mathbf{p}}{\text{dt}}=\frac{\text{d}}{\text{dt}}\int\limits_{V}\rho(\mathbf{r'},t)\mathbf{r'}\, \text{d}V'=\int\limits_{V}\frac{\partial \rho}{\partial t}\mathbf{r'}\, \text{d}V'=\int\limits_{V}-\nabla \cdot\mathbf{J}(\mathbf{r'},t)\:\mathbf{r'}\, \text{d}V'=0$$
Firstly, I was wondering if the reasoning here is sound also if there are any other general conditions for the time derivative of the dipole moment to be 0 or is it rather problem specific in any other case? What happens when the situation is not magnetostatic?