-
Notifications
You must be signed in to change notification settings - Fork 4
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
Feature/1021 fix is campaign check #237
Feature/1021 fix is campaign check #237
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
@@ -3,7 +3,7 @@ import { useTranslation } from "react-i18next"; | |||
import { useNavigate } from "react-router-dom"; | |||
import Form from "react-bootstrap/Form"; | |||
import { Button } from "react-bootstrap"; | |||
import { usePostV1UserActivationCodesActivateMutation } from "../../redux/api/api.generated"; | |||
import { usePostV1UserActivationCodesActivateMutation } from "../../redux/api/api.generated.ts"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this (adding .ts
) really change anything?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise it could not resolve the path.
The change is from using the .js file to using the .ts file (since I deleted the .js file).
page, | ||
id, | ||
}, | ||
{ skip: !id } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not clear (to me) what the semantics of { skip: !id }
is and what it's supposed to do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is to avoid executing the query when the id is undefined:
https://redux-toolkit.js.org/rtk-query/usage-with-typescript#skipping-queries-with-typescript-using-skiptoken
Link to ticket
https://leantime.itkdev.dk/#/tickets/showTicket/1021
Description
Checklist