Replies: 1 comment 2 replies
-
Thanks for sharing this @Morzaram! It would be good for us to add an official helper function to determine if the response is an Inertia-powered response. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there, since I'm migrating from LiveView/ have a few pages that don't need inertia I wanted to share how I determine if I should load the inertia entrypoint. It feels dirty since I'm accessing keys in
private
but none the less I can't figure out a better way. Thought I'd share for people that are looking for how to do this or for a better wayIn your .heex simply call.
@conn.private[:inertia_page]
Like
Beta Was this translation helpful? Give feedback.
All reactions