diff --git a/docs/frontend cache.md b/docs/frontend cache.md index 385e6cd..612c650 100644 --- a/docs/frontend cache.md +++ b/docs/frontend cache.md @@ -41,3 +41,10 @@ sent down automatically -> has useEffect for socket data -> has details page as it was pass through props, but still can fetch from here and add it to the big tree and thus will be passed down appropriately and re-order it in the list of lines + +### Update the fetch to include mofidicatios + +- use react query to make the basic fetch of lineIds +- have a function within the line list component which takes in new values so + that the child can send data up whenever data within it changes with react + query diff --git a/docs/test.tsx b/docs/test.tsx index b9ad79c..59e6d13 100644 --- a/docs/test.tsx +++ b/docs/test.tsx @@ -59,6 +59,8 @@ export default function useLinesData() { // need to figure out how to use this hook in line details // and at the same time, update the useLinesData hook...need to send it up there or something function useDetailedLineData(lineId: string) { + // set initial data as a prop for this query using the data from the above + // main hook // const x = useQuery(api.getLineData(pagination, etc..)) // return the react query query itself