Skip to content
Discussion options

You must be logged in to vote

Just took a look at your persisted state implementation. Very interesting. A state persistence layer is super cool! But Im thinking it should be something external to Via, i.e. added on top of Via on a particular Via application. My reasoning for this is that Via should stay as minimal as possible and just worry about UI, signals and patching. Dead simple. The state can come from anywhere the user sees fit, but it should not be directly coupled to the Via runtime. I can totally see your broadcastable state store be a dependency injected into a via page init func. e.g.

func pageWithLiveStore(store *myLiveStore.Store) func(via.Context) {
        return func(c *via.Context) {
                /…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@joeblew999
Comment options

@joaomdsg
Comment options

@joeblew999
Comment options

@joaomdsg
Comment options

Answer selected by joeblew999
@joeblew999
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants