Skip to content

Commit 151d6e0

Browse files
committed
add summers comments back about swrlist
1 parent c02f649 commit 151d6e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

utils/api/requests.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ export const useAllSOWs = (id, requestIdentifier, accessToken) => {
6060
// Since it is async, it is technically not a custom hook and according to linter should not start with use.
6161
export const getAllPOs = async (quotedWareId, uuid, requestIdentifier, accessToken) => {
6262
try {
63+
// TODO(summer-cook): eventually we can use the useSWRList hook here instead of mapping & calling the fetcher.
64+
// This hook is actively being contributed to the swr repo, but the semantics of the work are still being debated.
65+
// See https://github.com/vercel/swr/discussions/1988 for the RFC and https://github.com/vercel/swr/pull/2047 for the PR.
6366
const data = await fetcher(`quote_groups/${uuid}/quoted_wares/${quotedWareId}/purchase_orders.json`, accessToken)
6467
const configuredPOs = data.map(async (po) => {
6568
const purchaseOrder = await fetcher(`quote_groups/${uuid}/quoted_wares/${quotedWareId}/purchase_orders/${po.id}.json`, accessToken)

0 commit comments

Comments
 (0)