-
-
Notifications
You must be signed in to change notification settings - Fork 49
Conversation
Adds a link to a complete project example.
Current coverage is 94.36% (diff: 100%)@@ master #5 diff @@
==========================================
Files 5 2 -3
Lines 147 142 -5
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
- Hits 140 134 -6
- Misses 7 8 +1
Partials 0 0
|
Thanks! I'll have to review your example first to say if I endorse it |
Of course. Am I right in my assumption that actions are not required to dispatch mutations when using Vuexfire & Firebase? |
Yes. Althought you can create actions that uses the firebases refs to push data |
Would that be the recommended approach for a large application? If so, perhaps it might be worth demonstrating this with an example. |
I don't think they should be used through |
You're using VueFire at the same time as VuexFire. That'd create double bindings |
Thanks, I'll rectify that later today. Am I handling the dependencies in a correct manner? Not sure if I should be initialising a Firebase instance per component, but I guess it makes sense if the URL is directly related to a component (eg. Todo component -> firebaseUrl/todos) |
@posva If I remove the references to VueFire from |
Perhaps I'm not understanding what exactly is happening under the hood, but I've removed Perhaps I've set things up wrong somewhere along the lines, but I think this project could really do with a solid example of how to use it after generating a Vue v2.0 app with Vue-CLI (using the Webpack template). Thanks in advance. |
I'm wondering if adding this link is really necessary. What is the example missing in your opinion? |
@posva A full application example, one constructed from using Vue-CLI (Webpack) as that is how a lot of people will be scaffolding their applications. Any ideas related to the issues I mentioned above? Very difficult to put something like this on CodePen... Thanks. |
I'll find some time this week-end to help you. Quite busy atm 😅 |
Thanks @posva - much appreciated. I know that we can use Vuex with VueFire, but VuexFire really does seem to cut down on the boilerplate required. Thanks again. |
Will the following be merged? |
If by the following you mean the PR, it still has to be updated. It's just an example with webpack |
Since the v2 is coming soon and the approach is completely different, I'm closing this. |
@posva Awesome stuff! 👍 |
Adds a link to a complete project example.