Infinite loop triggered by calling getData and setData in a before hook.