Start seeing companies as contract work. You sign a contract, go all-in at work and enjoy the reward.
When priorities of you or your company changes - anyone can terminate the contract.
While the people you work - see them as your partners while working for the same goal. If they are awesome - don’t leave them. If they suck - find different partners (team).
Now to original question - if the company is restarting the contract and you loved your work, would suggest to join back.
Company contracts are not similar to human relationships. Don’t compare them.