Listen for events for a specific entity id #93
Unanswered
ChristopheCVB
asked this question in
Q&A
Replies: 1 comment
-
Hello and thanks! It's an interesting question, at some point I did consider. I reasoned it would be too many events to be emitting and left it out. I would say the options are as follows:
Personally option 2 is probably what I would go with as it allows any custom extension by the user instead of a specific implementation for a given use-case. P.S. I have moved them to strapi community so others can maintain them if desired. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there!
Firstly, thank you for the good work you've put here, v2 seems to be way cleaner than v1, bravo!
I come here to know how to properly implement events for specific entities (based on the content-type and its id). Of course I'm only talking about something like
{uid}:update:{id}
and{uid}:delete:{id}
, not thecreate
.Also, if you think this is something worth having by default in the plugin, I'm willing to open a PR, I just wanted to discuss implementation first.
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions