adding more doc stuff

This commit is contained in:
talksik
2022-04-30 18:36:28 -05:00
parent d0cf6e37de
commit 3bdb7e888f
2 changed files with 9 additions and 0 deletions
+7
View File
@@ -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 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 add it to the big tree and thus will be passed down appropriately and re-order
it in the list of lines 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
+2
View File
@@ -59,6 +59,8 @@ export default function useLinesData() {
// need to figure out how to use this hook in line details // 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 // and at the same time, update the useLinesData hook...need to send it up there or something
function useDetailedLineData(lineId: string) { 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..)) // const x = useQuery(api.getLineData(pagination, etc..))
// return the react query query itself // return the react query query itself