kjssad

kjssad

LiveView for production

I’ll be starting a project next week and yet to decide what to use for the frontend. I know live-view is still on its early stages but are there anyone using it now for production? I wanted to go less JS as possible(no SPA) as SEO is important for me.

Any suggestions? I’m currently considering going Phoenix with live view or a graphql phoenix backend with a Nuxt frontend.

Marked As Solved

jeremyjh

jeremyjh

A lot of the underlying technologies are fairly mature, but the library is not even published on Hex yet. That gives you an indicator that it is still under heavy development, and not considered “ready” for large-scale adoption. There could conceivably be radical changes to the API that would be hard to adapt to.

For myself, I’m probably going to use it on my current side project, but that isn’t likely to become a real business. I wouldn’t use it at work yet. One issue that I consider quite significant for many use cases is that all state is lost when the server restarts; if a user is in the middle of filling in a big form and you deploy a new version, their view will reset entirely and the local state in their browser is lost. You can mitigate this with hot deployment but that imposes a significant complexity burden as it is very difficult, maybe impossible to properly test the state migrations.

Last Post!

kjssad

kjssad

Thanks @jeremyjh. I was under the impression that things have settled already but yes, there could really be changes that may happen.

That is indeed a pretty big hit to user experience. Would implementing a copy of the state to the client a possible case here? I’ll be watching closely the development of this.

Again. thanks!

Where Next?

Popular in Questions Top

minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New

Other popular topics Top

hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 54996 245
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 42576 114
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

We're in Beta

About us Mission Statement