mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-27 13:54:08 +03:00
Temp - try out avoiding duplicate DataSource requests.
This commit is contained in:
parent
7b08b86060
commit
1c746bef8d
@ -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 :
|
||||
|
Loading…
Reference in New Issue
Block a user