GithubHelp home page GithubHelp logo

atinux / atinotes Goto Github PK

View Code? Open in Web Editor NEW
151.0 4.0 7.0 1.12 MB

An editable website with universal rendering on the edge.

Home Page: https://notes.atinux.com

License: MIT License

Vue 66.20% TypeScript 32.32% JavaScript 1.48%
esr nuxt workers cf-pages vue vue3 nuxt-template nuxt-ui nuxt-ui-pro nuxthub

atinotes's Issues

Cleaner way using custom fetch

Hi @atinux! Hope you are doing well.

I was wondering if there is an update about creating a custom fetch composable that adapts the current Nuxt version 3.10.X because I believe your blog post is a bit behind from current changes and right know the Nuxt vesion I am using is showing a warning that I haven't solved which is [nuxt] [useFetch] Component is already mounted, please use $fetch instead. See https://nuxt.com/docs/getting-started/data-fetching.

I have followed the videos that the community suggest in this nuxt issue but the warning persists.

Thanks!

`nuxt-og-image` is not work?

  defineOgImageComponent('OgImagePage', {
    title: page.value.parsed.data?.title || 'Missing title',
    description: page.value.parsed.data?.description || 'Missing description'
  })
image

custom useFetch has type bug

Reproduction: https://stackblitz.com/edit/atinotes-1

Thanks for sharing the way to make a custom useFetch. But I found some type bugs with useAPI:

  1. When I set a default value in fetch options, it will raise error:
error TS2322: Type '() => never[]' is not assignable to type '() => Ref<null> | null'.
  Type 'never[]' is missing the following properties from type 'Ref<null>': value, [RefSymbol]
  1. With a non-null default value, useAPI still returns a nullable data:
error TS18047: 'data2.value' is possibly 'null'

Original useFetch has no such issue.

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.