In Pt. 21 of our Phoenix LiveView Gist Clone series (part of the Elixir Full Course), we tackle a critical bug that prevents gist updates from working correctly, instead creating new gists with the same data. Join me as we dive into the code and resolve this problem step by step, adding a hidden input to our form data in the `gist_form_component.ex` file to ensure the gist id is properly passed and utilized. We'll also modify our create handle event to differentiate between creating new gists and updating existing ones based on the presence of the id parameter and switch from `push_patch` to `push_navigate` in our update function to ensure our mount function is called again after the update. Whether you're following along with the Gist Clone series or just looking to enhance your Elixir and Phoenix LiveView skills, this video is packed with valuable insights and practical tips to help you understand and implement the solution in your own projects.
Subscribe now, and we'll begin a hands-on introduction to Elixir, Phoenix, and LiveView. If you're eager to learn how to code in Elixir and harness the real-time capabilities of LiveView, this tutorial is the perfect starting point! I'll guide you through the basics, including setting up a RESTful API or a Phoenix LiveView application, alongside key programming concepts. This will equip you with the knowledge to build powerful, interactive applications in this elegant language. Begin your learning journey with this comprehensive Elixir, Phoenix, and LiveView tutorial today, and discover how effortless it is to dive into Elixir!
✅✅SOLUTION: https://github.com/ElixirMentor/elixi...
SUPPORT ELIXIR MENTOR
🌐🌐 My website: https://elixirmentor.com/
🎙🎙Check out my podcast: https://www.hiredgunapps.com/podcast
🆘🆘NEED HELP?? Join the Discord Server: / discord
🔗🔗All my Links: https://linktr.ee/jacob_luetzow
Join this channel to get access to perks:
/ @elixirmentor
#ElixirLang #PhoenixFramework #LiveView #ElixirCourse #CodingTutorial #WebDevelopment #Programming #LearnToCode #ElixirProgramming #PhoenixLiveView #InteractiveApps #RealTimeWeb #SoftwareDevelopment #TechEducation #ElixirPhoenix #DeveloperJourney #CodeNewbie #TechTutorial #ElixirMentor #GithubGist