Skip to content

Commit ef18dde

Browse files
committed
feat: update LocalStore on admin pages to use infinite TTL
1 parent ced60f8 commit ef18dde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/algora_web/live/admin/campaign_live.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ defmodule AlgoraWeb.Admin.CampaignLive do
4747
def handle_params(_params, _uri, socket) do
4848
{:noreply,
4949
socket
50-
|> LocalStore.init(key: __MODULE__, ok?: &match?(%{form: _}, &1), checkpoint_url: ~p"/admin/campaign")
50+
|> LocalStore.init(key: __MODULE__, ttl: :infinity)
5151
|> LocalStore.subscribe()}
5252
end
5353

0 commit comments

Comments
 (0)