Skip to content

Commit

Permalink
Update README's AllowEctoSandbox config for liveview 0.18.X (#721)
Browse files Browse the repository at this point in the history
- `assign_new/3` was one of several functions moved to `Phoenix.Component` in the phoenix_live_view 0.18.0 release
- we still need the `import Phoenix.Liveview` due to other funcs called in the AllowEctoSandbox module
  • Loading branch information
vanderhoop authored Jan 20, 2023
1 parent ae20b0c commit 6735bd9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ In order to test Phoenix LiveView (as of [version 0.17.7](https://github.com/pho
```elixir
defmodule MyApp.Hooks.AllowEctoSandbox do
import Phoenix.LiveView
import Phoenix.Component

def on_mount(:default, _params, _session, socket) do
allow_ecto_sandbox(socket)
Expand Down

0 comments on commit 6735bd9

Please sign in to comment.