Skip to content

Commit

Permalink
Fix error message when phxSocket is not a Socket (#1861)
Browse files Browse the repository at this point in the history
`LiveSocket` is a named export not the default export of the module `"phoenix_live_view"`.
  • Loading branch information
Serabe authored Jan 31, 2022
1 parent a015846 commit ca0d30e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/phoenix_live_view/live_socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default class LiveSocket {
a phoenix Socket must be provided as the second argument to the LiveSocket constructor. For example:
import {Socket} from "phoenix"
import LiveSocket from "phoenix_live_view"
import {LiveSocket} from "phoenix_live_view"
let liveSocket = new LiveSocket("/live", Socket, {...})
`)
}
Expand Down

0 comments on commit ca0d30e

Please sign in to comment.