Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@AlexDeLarge if you don't mind me asking, I have setup vue-router and all is good. But if I reload the page, created, mounted ...etc do not get called, any idea why? It is not related to Vue router just thought I'd mention it
-
Gloumy247yUsed Vuejs for our latest project at work with a Rails API, it was pretty fun, i found Vue to be nice to develop with.
Have yet to try it within a rails app, to see if it's going well with it -
@gitpush Instead of go use push it pushes the component on top of stack and created and mounted life cycle hooks would work.
I found this problem in my ajax queries hope it helps. -
@over9000 Thats what I use: Router.push({ name: "folderInfo", params: { folderId: folder.id, Folder: folder } }); (link: https://github.com/gitpushdev/...)
The issue is when I hit F5 to refresh the page mounted/created ...etc does not get called :\ -
@Gloumy I did not have a mode, then I made it history if you are referring to this: https://github.com/gitpushdev/...
export default new VueRouter({
mode: 'history',
routes: routes
}) -
@Gloumy Component is being mounted but it is not calling, could it be FireFox is fetching it from cache? Even though I did press CTRL + F5 which should fetch a fresh copy
-
@Gloumy yup and after that console.log I fetch from the server and my service is not printing any received request either :/
-
@gitpush yep I face same issue it logs to console but does not fulfill the ajax calls.
-
@gitpush Are the lifecycle hooks called if you change routes? So they are only not called on a fresh load?
-
@ChibangLW yes they are called when I navigate and not called when I reload the page
Related Rants
After doing some Vue, I probably will go with laravel for the backend.
I'm excited about that, but it feels just right.
rant
vue
frameworks
laravel