nextcloud-vue icon indicating copy to clipboard operation
nextcloud-vue copied to clipboard

Fix useModelMigration in async components

Open baltitenger opened this issue 7 months ago • 4 comments

It was using getCurrentInstance() which, as I understand it, isn't part of vue's public API anymore and isn't guaranteed to work in every situation.

Makes call site a bit uglier, but I don't think there's a better way to do it.

☑️ Resolves

  • Fix #6607

🏁 Checklist

  • [x] ⛑️ Tests are included or are not applicable
  • [x] 📘 Component documentation has been extended, updated or is not applicable
  • [ ] 3️⃣ Backport to next requested with a Vue 3 upgrade

baltitenger avatar Mar 08 '25 21:03 baltitenger