Comments (6)
But then perhaps we can simply remove the first two lines of Step 4
Some editors (in my case VScode) display an error if we don't import Phoenix.LiveView.Router on step 4. The error will be gone as soon as step 5 is finished but I'm wondering if it will confuse people.
we could add a warning on step 4 or we could merge step 4 and 5 together?
from phoenix-liveview-counter-tutorial.
Ah .... ok.
If your editor is complaining, which is impressive that it understands the lack of the import,
then let's make the switch!
from phoenix-liveview-counter-tutorial.
Change included in PR #6 👍
from phoenix-liveview-counter-tutorial.
resolved with PR #6
from phoenix-liveview-counter-tutorial.
@SimonLab good observation. 👍
But then perhaps we can simply remove the first two lines of Step 4
given that the Phoenix.LiveView.Router
is already imported in endpoint.ex
.
from phoenix-liveview-counter-tutorial.
Included in #6
from phoenix-liveview-counter-tutorial.
Related Issues (20)
- Update to Phoenix 1.7.0 HOT 3
- mix: FunctionClauseError: no function clause matching in String.to_charlist/1 HOT 4
- The project's URL leads to a non-existent Heroku app HOT 6
- Feat: Split `counter.ex` into a basic `LiveView` Component HOT 15
- Chore: Tidy `README.md` Screenshots and Markdown Fails HOT 3
- Opening an issue to be closed :) HOT 6
- Distributed version HOT 7
- Images/assets not loading when running the finished app on my localhost (step 0) HOT 1
- Update "Create the App" section HOT 2
- update readme links
- Add Dependabot to Update Dependencies HOT 1
- 2022 Update HOT 5
- Optimizing User Experience with LiveView HOT 1
- Real-Time Form Validation with Phoenix LiveView HOT 1
- TDD with Liveview HOT 1
- update links
- Why does using handle_call mean the calling LiveView will be updated twice? HOT 3
- Which pubsub? HOT 1
- Learning components
- typo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phoenix-liveview-counter-tutorial.