Our great sponsors
- Paraxial.io - Bot detection and prevention for Elixir/Phoenix applications
- SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
- Scout APM - Less time debugging, more time building
-
This is just an idea, but what about implementing using Phoenix.View(via use MyAppWeb, :view in your module)? Then assign I think has access to @conn. Then maybe work some magic to still allow Phoenix.Component syntax - but at this point, this is something I believe is a flow that might be in development. Try investigating / asking in Surface, because that is a lot more similar to React in its approach. In fact, I think Surface is where more aggressive features are pushed out, and ironed-out features get included into Phoenix. This was the case for Phoenix.Component, and HEEX.
-
The git repo referred in the post is pretty up to date for the web.ex file: https://github.com/kimlindholm/phoenix_component_folders/blob/master/lib/phoenix_component_folders_web.ex
-
Paraxial.io
Bot detection and prevention for Elixir/Phoenix applications. Paraxial.io is bot detection and prevention for Elixir/Phoenix applications. Dealing with scrapers, card cracking, or credential stuffing? We take care of that.
Related posts
- Elixir/Erlang: How to find the source of high CPU usage?
- Adding React to an existing application?
- Stop building REST APIs for your Next.js apps, use tRPC instead
- Building a type-safe Fullstack Application with GraphQL codegen
- [Beginner] Hey guys, I am considering starting a project in graphql and need some help with few basic questions