Why do I get empty array at first render and then click other date before the data shows?
I’m having a little bit of problem on rendering the initial data for the current date, in my system I have a calendar wherein the first thing it will select is the current date, and it should show the current event on that day.
How to use react query data in another component without moving state up?
I am using nextjs + typescript + react-query. Currently my app has an input that asks a user for a url, which is then used to fetch a list of github issues. Here are the simplified versions of the files: