nuxt-property-decorator icon indicating copy to clipboard operation
nuxt-property-decorator copied to clipboard

Nuxt-Property-Decorator 3 - Nuxt 3, Vue 3 and Vue Class Component v8 readiness

Open husayt opened this issue 3 years ago • 9 comments

We need to start working on Nuxt-Property-Decorator 3 which will work with Vue Class Component v8.

@pi0 @Atinux going forward this library will shape depending on vue 3 related changes in next versions of vue-class-component and nuxt. I want to make sure we can adopt this library and make it ready by the time new nuxt is released. Can I have access to nuxt-3 for vue3 to give it a try as Vue Class Component v8 is already available in beta.

husayt avatar Jan 17 '21 12:01 husayt

Hi @husayt. I will let you know as soon as nuxt3 alpha package is published so you can try it. BTW pages/composition api is not finalized for nuxt3 so it might have breaking changes.

pi0 avatar Jan 17 '21 12:01 pi0

Thanks @pi0 , I will be looking forward. Before even starting to change anything, we need to just get some ideas about how it will look in v3. For that we will need to do some experimentation and that will take some time.

husayt avatar Jan 17 '21 13:01 husayt

Before even starting to change anything, we need to just get some ideas about how it will look in v3. For that we will need to do some experimentation and that will take some time.

Hi @husayt, did you have the possibility to have a look at Nuxt 3 and start your experiments. I wonder if Nuxt-Property-Decorator will be quickly available after the release of Nuxt 3. Thank you for any feedback.

furepa avatar Aug 07 '21 10:08 furepa

I haven't had access to nuxt 3 yet. To be honest, with composition api available there is not much point in using this library. If someone is keen to maintain the library that will be welcome, but I am not going to be using it so will not be able to allocate time to it.

On Sat, 7 Aug 2021, 14:35 furepa, @.***> wrote:

Before even starting to change anything, we need to just get some ideas about how it will look in v3. For that we will need to do some experimentation and that will take some time.

Hi @husayt https://github.com/husayt, did you have the possibility to have a look at Nuxt 3 and start your experiments. I wonder if Nuxt-Property-Decorator will be quickly available after the release of Nuxt 3. Thank you for any feedback.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nuxt-community/nuxt-property-decorator/issues/83#issuecomment-894637072, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI5PLHDIB3M5GJD7HDVZXTT3UEAFANCNFSM4WGCO2IQ .

husayt avatar Aug 07 '21 10:08 husayt

I haven't had access to nuxt 3 yet. To be honest, with composition api available there is not much point in using this library. If someone is keen to maintain the library that will be welcome, but I am not going to be using it so will not be able to allocate time to it. On Sat, 7 Aug 2021, 14:35 furepa, @.***> wrote: Before even starting to change anything, we need to just get some ideas about how it will look in v3. For that we will need to do some experimentation and that will take some time. Hi @husayt https://github.com/husayt, did you have the possibility to have a look at Nuxt 3 and start your experiments. I wonder if Nuxt-Property-Decorator will be quickly available after the release of Nuxt 3. Thank you for any feedback. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#83 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI5PLHDIB3M5GJD7HDVZXTT3UEAFANCNFSM4WGCO2IQ .

I'm trying to understand the dependencies between the components in a project built (not by me) with Nuxt/Vue 2 and this library. Your reference to composition api give me the hint for my next steps. Thank you very much for your input.

furepa avatar Aug 07 '21 10:08 furepa

+1 for nuxt3 support

rklos avatar Mar 17 '22 19:03 rklos

To be honest, with composition api available there is not much point in using this library.

Hey, @husayt can you elaborate on this part please ? Even if the composition API is better than the option API, I am pretty sure the class component way of doing thing has still a big user base. The composition API has indeed some benefits, but I personnaly think, comming from backend, that it's easier to understand things with class component & decorators.

synopss avatar Mar 31 '22 21:03 synopss

Hi, I am not using this module anymore. If anyone is willing to make thd required changes, they are more than welcome

husayt avatar Mar 31 '22 21:03 husayt

How much dontations your community needs to adapt this library for Nuxt 3?

TokugawaTakeshi avatar Mar 31 '22 23:03 TokugawaTakeshi

To not to set any expectations, it is best to close this issue. Recommend everyone to switch to composition api.

I have recently switched number of projects using nuxt property decorator to nuxt3. Have to say it was much easier switching class based components than classic options based ones. Composition api and script setup allows very similar programming style to nuxt-property-decorator.

My team has a spare capacity to help with transition (on a paid base ), if anyone is interested, drop me a line and we will provide you with a quote depending on the project.

husayt avatar Sep 13 '22 09:09 husayt

By other words, "Good luck to you with the learning of Composition API and changing of your thinking, methodologies and guidelines to Composition API oriented". Well, it is the Open Source, not business, I suppose we can not complain...

TokugawaTakeshi avatar Sep 14 '22 10:09 TokugawaTakeshi

I have myself been looking for a way forward for our apps using this library and composition api is the most pragmatic answer. Switch is very easy and the mindset is very similar. The main problem in switching to nuxt3 is library support, not the composition api. Most libraries/modules are not supported or not nuxt3 ready.

husayt avatar Sep 14 '22 11:09 husayt

I published a drop-in Nuxt 3 replacement for nuxt-property-decorator: https://github.com/IlyaSemenov/nuxt3-class-component.

The existing components code just works without any modification.

IlyaSemenov avatar May 20 '23 16:05 IlyaSemenov

@IlyaSemenov

I and many OOP followers can not thank you enough. I'll star your repository!

TokugawaTakeshi avatar May 22 '23 13:05 TokugawaTakeshi