Async functions not completing in React Native

This is a #DebugJournal post, which means you’re reading the notes I took in real-time while debugging the issue. It won’t read like a nicely put together tutorial, more like a boring field-journal. Multiple times now I’ve come to situations where React Native just hangs up, and stops execution of a promise or generator-based function in the middle, with no error message. Today I debugged one involving an async function that calls out to native Read more…

Deploying Elixir to Render.com

I’ve deployed a few different Elixir services to the hosting platform https://render.com and found their provided documentation to be lacking for real-world Phoenix apps. Especially if you’re using Live View. Here’s an augmentation to their guide with the extra steps you might be missing. Initial Setup Follow the official guide: https://render.com/docs/deploy-phoenix but don’t deploy your service yet. You’ll need to make some changes: Add Evars Add some new evars: ELIXIR_VERSION = 1.10.3 or whatever version Read more…

Authenticated Live View Tests

I’ve been running through Pragmatic Studio’s Live View course, which I highly recommend, and wanted to make a specific note of how to authenticate users when writing Live View tests after adding phx_gen_auth to a Phoenix project. Happily, this is a very short post, because phx_gen_auth does all the work for you. When you’ve run that generator, you get a function added to your conn_case.ex called register_and_log_in_user. This function takes a map with a connection Read more…