mirror of
https://github.com/plausible/analytics.git
synced 2024-12-28 12:01:39 +03:00
24a8aa2821
* Reapply "Sentry context in live views (#3672)" This reverts commit 5449fead160064b8a0081c458cc5dcd34399eb0b. * Make sure `:selection_made` is handled in `GoalSettings.Form` That was a bit unepexcted.. normally `handle_info` is injected by the LiveView use macro and it discards any message gracefully. After switching to `use PlausibleWeb, :live_view` we're also using `PlausibleWeb.Live.Flash` that happens to inject its own receive clause for closing the flash. Which then renders the original, overridable, `handle_info` catch-all obsolete. * Update LV SentryContext only on connected sockets (first mount already has the right context coming from Sentry plug) * Make sure Live.ChoosePlan passes `current_user_id` session key
5 lines
123 B
Plaintext
5 lines
123 B
Plaintext
<%= live_render(@conn, PlausibleWeb.Live.ChoosePlan,
|
|
id: "choose-plan",
|
|
session: %{"current_user_id" => @user.id}
|
|
) %>
|