Skip to content

Commit

Permalink
Remove retry: false
Browse files Browse the repository at this point in the history
  • Loading branch information
cayb0rg committed Nov 28, 2023
1 parent d332555 commit 7d06ffa
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/components/my-widgets-collaborate-dialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ const MyWidgetsCollaborateDialog = ({onClose, inst, myPerms, otherUserPerms, set
queryFn: () => apiSearchUsers(debouncedSearchTerm),
staleTime: Infinity,
placeholderData: [],
retry: false,
onError: (err) => {
if (err.message == "Invalid Login")
{
Expand Down
2 changes: 0 additions & 2 deletions src/components/my-widgets-page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ const MyWidgetsPage = () => {
queryKey: 'user',
queryFn: apiGetUser,
staleTime: Infinity,
retry: false,
onError: (err) => {
if (err.message == "Invalid Login")
{
Expand All @@ -80,7 +79,6 @@ const MyWidgetsPage = () => {
enabled: !!state.selectedInst && !!state.selectedInst.id && state.selectedInst?.id !== undefined,
placeholderData: null,
staleTime: Infinity,
retry: false,
onError: (err) => {
if (err.message == "Invalid Login") {
setInvalidLogin(true)
Expand Down
1 change: 0 additions & 1 deletion src/components/my-widgets-score-semester-individual.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ const MyWidgetScoreSemesterIndividual = ({ semester, instId, setInvalidLogin })
enabled: !!instId && !!semester && !!semester.term && !!semester.year,
placeholderData: [],
refetchOnWindowFocus: false,
retry: false,
onSuccess: (result) => {
if (page <= result?.total_num_pages) setPage(page + 1)
if (result && result.pagination) {
Expand Down
1 change: 0 additions & 1 deletion src/components/my-widgets-selected-instance.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ const MyWidgetSelectedInstance = ({
placeholderData: null,
enabled: !!inst.id,
staleTime: Infinity,
retry: false,
onError: (err) => {
if (err.message == "Invalid Login")
{
Expand Down
1 change: 0 additions & 1 deletion src/components/notifications.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const Notifications = (user) => {
const { data: notifications} = useQuery({
queryKey: 'notifications',
enabled: !!user && user.loggedIn,
retry: false,
refetchInterval: 60000,
refetchOnMount: false,
refetchOnWindowFocus: true,
Expand Down
2 changes: 0 additions & 2 deletions src/components/scores.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ const Scores = ({ inst_id, play_id, single_id, send_token, isEmbedded, isPreview
queryFn: () => apiGetGuestWidgetInstanceScores(inst_id, guestPlayId),
enabled: false, // enabled is set to false so the query can be manually called with the refetch function
staleTime: Infinity,
retry: false,
refetchOnWindowFocus: false,
onSuccess: (result) => {
_populateScores(result)
Expand All @@ -119,7 +118,6 @@ const Scores = ({ inst_id, play_id, single_id, send_token, isEmbedded, isPreview
queryFn: () => apiGetWidgetInstancePlayScores(playId, previewInstId),
staleTime: Infinity,
enabled: (!!playId || !!previewInstId),
retry: false,
refetchOnWindowFocus: false,
onError: (err) => {
if (err.message == "Invalid Login") {
Expand Down
1 change: 0 additions & 1 deletion src/components/student-search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const StudentSearch = ({addUser, debounceTime=300, setError}) => {
placeholderData: [],
enabled: !!debouncedSearchTerm && debouncedSearchTerm.length > 0,
staleTime: Infinity,
retry: false,
onError: (err) => {
if (err.message == "Invalid Login") {
window.location.href = '/login'
Expand Down
1 change: 0 additions & 1 deletion src/components/support-selected-instance.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ const SupportSelectedInstance = ({inst, currentUser, embed = false}) => {
enabled: !!inst && inst.id !== undefined,
placeholderData: null,
staleTime: Infinity,
retry: false,
onError: (err) => {
if (err.message == "Invalid Login") {
setInvalidLogin(true)
Expand Down

0 comments on commit 7d06ffa

Please sign in to comment.