3 ms·
Yes, in the above gist the connect are params used, so connect params are a general purpose mechanism for state recovery. In the above example a form is used, b
by chrismccord 7y ago
Yes, in the above gist the connect are params used, so connect params are a general purpose mechanism for state recovery. In the above example a form is used, but on mount you can do whatever you'd like with the data. Thanks!
- Ankhers 7y agoAwesome. I look forward to having this idea formalized and I will give it another go.
- elcritch 7y agoWill the data in the “stash” need to be verified on the server? Currently I treat connect params as user data and parse and verify it. I’m unclear if a more general data stash would cause potential security issues. Secondly, has there been any discussion for supporting server side draining or moving the process to another node?
- fouc 7y agoPhoenix is built around a middleware known as Plug, and most things are Plugs, you can add a Plug to separately handle the verification I would guess