Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useReactions() hook #33

Open
4lve opened this issue Sep 28, 2023 · 2 comments · May be fixed by #44
Open

useReactions() hook #33

4lve opened this issue Sep 28, 2023 · 2 comments · May be fixed by #44
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@4lve
Copy link

4lve commented Sep 28, 2023

Returns reaction information about the message and updates when reactions change on the message

@itsMapleLeaf itsMapleLeaf added enhancement New feature or request help wanted Extra attention is needed labels Sep 28, 2023
@itsMapleLeaf
Copy link
Owner

After some talks with @domin-mnd, we decided this would be somewhat difficult to include in core, and instead are considering making a separate library for DJS-specific helpers (think Reacord's lodash) that would include hooks like this.

We'd also need to figure out what a good API for this would look like specifically, e.g. would it only return a DJS live cache of reactions? What options should it accept? etc.

@4lve
Copy link
Author

4lve commented Nov 3, 2023

Yea customs hooks would be good, but you would need to be able to get the message id and rerender the component manually

@domin-mnd domin-mnd linked a pull request Nov 4, 2023 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants