The sample phoenix app created with liveview, sets up a livesocket in the app.js. How do you deal with hooks if you have 20 liveview pages that need hooks?
- Should I import 20 hooks into
app.jsso only the ones present (phx-hook present) will be used?
- Should I create 20 entry points in the webpack config file?
Any hints are welcome