Hacker News new | ask | show | jobs
by chrismccord 2451 days 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!
2 comments

Will 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?

Phoenix 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
Awesome. I look forward to having this idea formalized and I will give it another go.