Giter Site home page Giter Site logo

Comments (3)

galvez avatar galvez commented on April 30, 2024 1

Ouch — so sorry about that, apparently I pushed an alpha version without the proper alpha tag.

In the new version, useHydration() is replaced by useIsomorphic(), usePayload() and useData().

See the new Vue 3 example here: https://github.com/fastify/fastify-vite/tree/dev/examples/vue-base

I'm working through the holidays in updating the documentation. Later tonight I'll push a new default 2.x release and start using the proper alpha npm tags.

You can access $global through useIsomorphic() now, all of those need to be imported from fastify-vite-vue/app in the alpha 3.x release. If you share a repo with me, I'll help you do the necessary fixes as I work out the new docs.

from fastify-vite.

AnoRebel avatar AnoRebel commented on April 30, 2024

My repo is at Mbx.

Would be grateful for any help. Currently, my issues are mostly:

  • I need to setup Tailwindcss with Vite/Vue, most of the setup is done, but where to hook up the css file is the issue, I've managed to make it work for now, but I'm not sure if that's the way.
  • How do I access the fastify instance if at all possible, in my Vite/Vue app?
  • And I wanted a custom directory structure for my project, so at 1st, I liked the out-of-box experience of just adding the server.js(which in my case is index.js) and having the index.html added, but with troubles I had, I thought of customizing some things, so, my question is, can I setup the files(e.g if I eject) in my own custom directories, I might have missed it from the docs.
  • Do you suggest I use the 3.x or the default 2.x??

Again, thanks for the help. And great work with this.

from fastify-vite.

galvez avatar galvez commented on April 30, 2024

Closing issue as part of new maintenance routine. New doc suite at https://fastify-vite.dev!

from fastify-vite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.