Refactoring to use new SDK under the hood #173
Replies: 6 comments 26 replies
-
I can't speak for @Intevel, but the idea, in general, is that if we migrate from $fetch (unJS ofetch) we do it for useFetch or useAsyncData to better integrate with Nuxt Multiple Environment support, which will not grant the support for fetch, and could introduce edge cases. |
Beta Was this translation helpful? Give feedback.
-
@Dominic-Marcelino Im looking forward to maybe rewrite this module using the new SDK & the powerfull features provided by Nuxt. We will track this process in this discussion. |
Beta Was this translation helpful? Give feedback.
-
Im currently trying something out with the new SDK, you can check https://github.com/intevel/nuxt-directus/tree/dev branch. And may contribute if you want, we check if the SDK suits. @Dominic-Marcelino |
Beta Was this translation helpful? Give feedback.
-
I saw that some initial work has been done. Has there been any outcome weather the approach is promising and will be continued? |
Beta Was this translation helpful? Give feedback.
-
Just as an update, I opened up a new discussion to track the current state of the rewrite at #215. If any of you have considerations on the topic or want to follow the progress I encourage you to go and comment or subscribe to that discussion! 😁 |
Beta Was this translation helpful? Give feedback.
-
--> #271 nuxt-directus-next is EOL. We will start to work on a v6 based on Nuxt First Approach |
Beta Was this translation helpful? Give feedback.
-
The nuxt-module hasn't been relying on the directus SDK in order to do things the nuxt-way. With the new SDK coming soon (currently in beta) I'm wondering if it wouldn't make sense to re-evaluate this.
The new SDK has better types support and relies on fetch instead of axios.
With building on top of the SDK developer would have benetifs like:
Looking forward to your feedback
Beta Was this translation helpful? Give feedback.
All reactions