It is a simple select element, which just shows the selected value. You can go with a list of flags or a custom dropdown. You can also have dynamic, translatable names for the
option so it is displayed in the language you selected.
Yeah thats a tricky one hehe… You would have to implement either a heartbeat which polls the server, or use an event for when the user comes back to the tab, from sleep or something, and try to do a check somewhere.
Then you could force them to reload with a modal or something.
That combined with a none cachable index.html should mitigate most issues.
Heh that is different. They are using the router’s parameter to keep track of the current language. Because they already have a transition on the vue-router, when they change the language param on the router, the transition animation is being run.
Functional components are reactive in the sense that they get rendered every time the parent component gets re rendered from a dependency change. They are essentially just plain functions that are extracted into their own component.
The biggest complaint I had, is not being able to have computed properties or methods. Those…
Yeah sure, I don’t mind. There are lots of others that I have not added . This was more of a curated list, of things I have personally read/viewed or am about to in the near future.
Good job. There was something similar on Vuejsdevelopers recently but there is always room for more good articles.
Probably mention that Nuxt has two modes. The SSR mode and the pre-render mode. As you mentioned one is better than the other for specific cases.