ContextMenu: Cache duplication "focusedItemId" #5054
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
I'm not quite sure what is going on, and after digging I can't figure out if it's my fault or not. The warn trace I'm getting is this:
Digging through the function stack tells me it's being emitted from Vue's applyOptions trying to patch computed options while mounting... no idea what's failing though. It only emit this the second and subsequent times a context menu is accessed, so I assume it's failing to reapply some patching or failing to properly remove something?
I'm currently trying to use the component like this:
I found some bugs remarking that the model needs to be a ref or reactive rather than just giving it a raw array, but I've tried all three and a couple of combinations. On the other hand, I'm not able to reproduce it outside of my code, so it's probably interacting with something else but I can't figure out what since I haven't seen this error prior to using primevue and I don't know what could be related to it.
Even if this isn't enough to figure out what the problem is, I'll take suggestions on where to look for what I'm doing wrong.
Reproducer
See report
PrimeVue version
3.46.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: