# \#mount

**URL:** https://forum.elixirforum.com/tag/mount/2553.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [Liveview remount continuously with the follow error. What could be wrong](https://forum.elixirforum.com/t/liveview-remount-continuously-with-the-follow-error-what-could-be-wrong/67912)

<div class="topic-metadata">

**Author:** [@kamaroly](https://forum.elixirforum.com/u/kamaroly)\
**Replies:** 4\
**Last updated:** [December 6, 2024, 1:56pm UTC](https://forum.elixirforum.com/t/liveview-remount-continuously-with-the-follow-error-what-could-be-wrong/67912 "2024-12-06T13:56:26Z")

</div>

Hi all, I just deployed an app to production, but it is behaving in a wild way. The liveview pages show that something went wrong, but sometimes it works well. I checked the log and found the following. It looks like it…

---

## [\`on\_mount\` called from within \`@before\_compile\` doesn't execute. Defect or on purpose?](https://forum.elixirforum.com/t/on-mount-called-from-within-before-compile-doesnt-execute-defect-or-on-purpose/63080)

<div class="topic-metadata">

**Author:** [@Joshua-at-bitcrowd](https://forum.elixirforum.com/u/Joshua-at-bitcrowd)\
**Replies:** 0\
**Last updated:** [April 23, 2024, 2:26pm UTC](https://forum.elixirforum.com/t/on-mount-called-from-within-before-compile-doesnt-execute-defect-or-on-purpose/63080 "2024-04-23T14:26:38Z")

</div>

Hey, so I had this situation: defmodule HelloWeb.Foo do use HelloWeb, :live\_view use HelloWeb.Bar on\_mount(\_\_MODULE\_\_) def on\_mount(:default, \_params, \_session, socket) do dbg("on\_mount Foo") {:cont, …

---

## [Reply-Function for LiveViews](https://forum.elixirforum.com/t/reply-function-for-liveviews/61534)

<div class="topic-metadata">

**Author:** [@Aduril](https://forum.elixirforum.com/u/Aduril)\
**Replies:** 19\
**Last updated:** [February 15, 2024, 1:15pm UTC](https://forum.elixirforum.com/t/reply-function-for-liveviews/61534 "2024-02-15T13:15:54Z")

</div>

Hello there, Whenever I setup a new project, there is a small function I always add: reply/1. What does it do? In a LiveView mount, handle\_event or handle\_info instead of writing {:ok, stream(socket, :posts, Blog.lis…

---

## [Stateful live component is mounted more than once](https://forum.elixirforum.com/t/stateful-live-component-is-mounted-more-than-once/39919)

<div class="topic-metadata">

**Author:** [@peter-de-boer](https://forum.elixirforum.com/u/peter-de-boer)\
**Replies:** 7\
**Last updated:** [May 22, 2021, 6:00pm UTC](https://forum.elixirforum.com/t/stateful-live-component-is-mounted-more-than-once/39919 "2021-05-22T18:00:22Z")

</div>

I have a stateful live component. Besides the id, it receives another parameter, “products”, from the parent live view. The parent live view constains a pubsub subscription and an handle\_info that changes the products p…

---

## [Prevent LiveView from mounting when using the browser back button](https://forum.elixirforum.com/t/prevent-liveview-from-mounting-when-using-the-browser-back-button/34601)

<div class="topic-metadata">

**Author:** [@Sanjibukai](https://forum.elixirforum.com/u/Sanjibukai)\
**Replies:** 11\
**Last updated:** [September 30, 2020, 10:43pm UTC](https://forum.elixirforum.com/t/prevent-liveview-from-mounting-when-using-the-browser-back-button/34601 "2020-09-30T22:43:00Z")

</div>

Hello everybody, I’m not sure if the title is clear but here is my problem: I have different “pages” handled within the same LiveView (so it’s a LiveNavigation). At one moment I have a form for which I save (or update…

---

## [LiveView: How to push\_redirect in mount (without full page reloads)?](https://forum.elixirforum.com/t/liveview-how-to-push-redirect-in-mount-without-full-page-reloads/34458)

<div class="topic-metadata">

**Author:** [@Sanjibukai](https://forum.elixirforum.com/u/Sanjibukai)\
**Replies:** 1\
**Last updated:** [September 18, 2020, 10:00pm UTC](https://forum.elixirforum.com/t/liveview-how-to-push-redirect-in-mount-without-full-page-reloads/34458 "2020-09-18T22:00:41Z")

</div>

Hi everybody, TL;DR: How to push\_redirect in mount without a full page reload? I have an application that handle localization with Gettext and I have a plug that set the selected locale in a cookie and in the session. …
