Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

fix: Loop on hooks #877

Merged
merged 1 commit into from
Oct 1, 2020
Merged

fix: Loop on hooks #877

merged 1 commit into from
Oct 1, 2020

Conversation

wtrocki
Copy link
Contributor

@wtrocki wtrocki commented Oct 1, 2020

This fixes loop on hook. Hook is called in loop because of data state changes (however strange thing happens when only id is present. This seems to solve issue. There might be more elegant solution though

#875

@kingsleyzissou kingsleyzissou self-requested a review October 1, 2020 13:19
@wtrocki
Copy link
Contributor Author

wtrocki commented Oct 1, 2020

Actually reason why loop happens is return results. if single object is returned it doesn't rerender. Do we need to return results at all.. Probably not

@wtrocki wtrocki merged commit ad41560 into master Oct 1, 2020
@wtrocki wtrocki deleted the fix-hooks-loop branch October 1, 2020 14:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants