pkamenarsky / replica

A remote virtual DOM library for Haskell
BSD 3-Clause "New" or "Revised" License
139 stars 14 forks source link

Allow using RequestHead to calculate initial state #18

Open seagreen opened 4 years ago

seagreen commented 4 years ago

I'm not sure if we'll want to go with this implementation, or go farther and do server-side calculated initial pages, but this can at least give us something to start thinking about.

See here for example use: https://github.com/seagreen/concur-replica/tree/use-request-info

pkamenarsky commented 4 years ago

Looks good! I'm trying to think of any other initial state we may want to include here, but that's a good start. Is there also a corresponding concur-replica PR?

seagreen commented 4 years ago

There's this: https://github.com/seagreen/concur-replica/tree/use-request-info, however I haven't made a PR yet, because stack.yaml can't point to the canonical replica until a replica PR is merged.