I have a spinner, the data of that spinner is obtained from the endpoint x, and when that spinner is selected it gets data from the endpoint x. so it will cause infinite looping