Open rubenmoor opened 3 years ago
Using prerender
works:
prerender_ (text "") $ do
res <- lift $ someAutoGeneratedRequest -- ...
-- ...
For my intents and purposes, this is a solution. I am not quite sure in how far I am limiting myself now - effectively allowing requests only once the Javascript frontend has loaded.
From what I understand, this project uses
servant-reflex
for a type-safe client, which is great. The price for this seems to be quite a bit of boilerplate for every single api request. Is this some irreducible complexity there?