You haven’t actually told us anything at all about what’s going wrong, or stated in detail how results differ from expectations, or provided a complete Minimal Reproducible Example so that we might run the code and see for ourselves. So unfortunately there’s not enough information to speculate about what might be going awry in your specific situation.
Cool thanks! Yeah, it was working already, no errors whatsoever. Just wanted to check to make sure there are no unexpected behaviours or unnecessary renderings due to me using the API in a wrong way.