- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 262
 
          feat(pinia-colada): implicit $fetch for client-nuxt (hide composable)
          #2598
        
          New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
  
    feat(pinia-colada): implicit $fetch for client-nuxt (hide composable)
  
  #2598
              Conversation
…ons / methods for `client-nuxt`
| 
           
  | 
    
          🦋 Changeset detectedLatest commit: 771d244 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
 Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR  | 
    
| 
           @brolnickij is attempting to deploy a commit to the Hey API Team on Vercel. A member of the Team first needs to authorize it.  | 
    
$fetch for nuxt (hide composable)$fetch for client-nuxt (hide composable)
      
          
commit:   | 
    
          Codecov Report❌ Patch coverage is  Additional details and impacted files@@            Coverage Diff             @@
##             main    #2598      +/-   ##
==========================================
+ Coverage   23.59%   24.16%   +0.56%     
==========================================
  Files         363      363              
  Lines       36545    36629      +84     
  Branches     1562     1644      +82     
==========================================
+ Hits         8622     8850     +228     
+ Misses      27910    27766     -144     
  Partials       13       13              
 Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
  | 
    
Description
Now for the
@pinia/coladaplugin together withclient-nuxt, the default transport is always$fetch, because using@pinia/coladain a nuxt.js environment means a more advanced replacement for nuxt composables (useAsyncData/useFetchand etc)For all other transport layers of
@pinia/colada(when used outside a nuxt.js environment), the plugin stays transport‑independent and can be used with any client as before without changesThe
client-nuxttransport now uses$fetchby default, but it does not break the public API, so there are no breaking changes at all (I added a small tip to the docs thatcomposablenow defaults to$fetch)Close #2595