I am migrating a react app from component to functional with hooks. The problem I\'m facing is that we have a nested setState using callbacks. useState doesn\'t have this featur