I am trying to update a context with a callback. When I execute the callback its fine, but when I try to update the property inside of it im getting the err Error: Invalid hook