I have a system for updating app state to keep track of the number of goals that exist for a given user. This is so that I can apply conditional visibility to another component.
When the page loads its supposed to update state with the number returned from the query count (as shown), however
the query is returning null even when there are goals in the database. (as shown in debugger)
Not really sure where to start with this, much appreciated.