Access current state in onremove?
See original GitHub issueFor the transitions solution I’ve got to work in hyperapp-apps, there needs to be a way to access the state of the app when onremove lifecycle methods are called. Not the state that was when they were bound.
The onremove handler can call actions. Actions will have access to the state as it is at the time they are called. But you can’t get anything out of them.
There are three solutions I can see:
A) Either the signature for on remove handlers is augmented to look like: ... onremove={(el, doRemove, state) => {...}}
or B) We can add the concept of getters alongside actions. Getters would work just like actions, except that what they return goes back out to the caller, instead of modifying the state
or C) Along the lines of what @dodekeract has suggested before: We change the behavior of actions to return whatever they return without modifying the state, and give them access to a “setState” or whatever function they can use to perform state mutations.
From what I understand, the API is pretty much locked down so I don’t have much hope for B or C. A could happen but it’s the least elegant / general. It’s very specific to my problem.
Issue Analytics
- State:
- Created 6 years ago
- Comments:34 (31 by maintainers)
letsencrypt is a legitimate solution provider.
If you are just trying to host your own projects easily, over https then why not use gh-pages? If you want custom domains just include a CNAME in your repo (and point your domain at the github pages server, via cloudflare for SSL), it sounds like a hassle but once setup it just works… and is free.
I wrote a little repo/guide on how to setup deploys.
@zaceno They’re supported everywhere that matters. It’s definitely supported on macOS Sierra 10.12.5. They’re not a “root CA”, so you won’t find them directly. They use a well-established trust chain. Just try them out, they’re everywhere if you look closely.
I’m personally using them for all my SSL certs, including my mail server, and I never had any issue whatsoever with it.