SwissDataScienceCenter / renku-ui

The web frontend of the Renku platform
https://renkulab.io
Apache License 2.0
13 stars 6 forks source link

Add a new coding guideline forbidding the use of `unwrap()` as it violates the rule of hooks #3188

Open leafty opened 1 month ago

leafty commented 1 month ago

Async code in react hooks create a lot of nasty race conditions which are hard to handle correctly. Using .unwrap() on RTK query hooks if one of these cases of should be forbidden.