If an anarchist revolution is successful, the dissolution of the state is inevitable.
If a socialist revolution is successful then the eventual dissolution of the state will likely occur in a framework such as Engels’ “withering away of the state”.
Since capitalism cannot sustain itself indefinitely, it is likely that one of these two revolutions will occur (or there will be a backslide into fascism).