Temp - try out avoiding duplicate DataSource requests.

This commit is contained in:
Dillon Kearns 2022-12-07 11:51:33 -08:00
parent 7b08b86060
commit 1c746bef8d

View File

@ -97,20 +97,24 @@ resolveUrlsHelp rawResponses soFar request =
RequestError error ->
case error of
MissingHttpResponse _ next ->
(soFar ++ next)
|> List.Extra.uniqueBy Pages.StaticHttp.Request.hash
--soFar ++ next
next
--|> List.Extra.uniqueBy Pages.StaticHttp.Request.hash
_ ->
soFar
--soFar
[]
Request urlList lookupFn ->
resolveUrlsHelp
rawResponses
(soFar ++ urlList)
--(soFar ++ urlList)
urlList
(lookupFn Nothing rawResponses)
ApiRoute _ ->
soFar
--soFar
[]
cacheRequestResolution :