To give some context, I'm building a fitness app where users must meet some conditions to be shown the correct routine.
My way of developing it was the following:
- Create a component with a listview and a local variable that would be the correct routine.
- When starting the component, create conditional actions, each one calls the corresponding routine, then the local variable is updated using the information from the corresponding routine.
- Finally, queried a document from the routines collection, using the local variable as a reference and made the texts show the name of the exercise, also using the exercises collection to get the string
When I go to test it, I get a null value in the component. I have already checked, and the test user meets the conditions and there is no null or loose value.