Drake
Drake
Explore posts from servers
RRailway
Created by Drake on 5/30/2023 in #✋|help
Project with Upstream Repo Won't Update
I have a project that is linked to an upstream repo, but despite clicking on "Check for updates", it always says "You're on the latest version of this repository." What am I doing wrong? Project ID: ea89a84d-aa05-4c99-b05b-4b6753a40615
23 replies
RRefine
Created by conscious-sapphire on 11/19/2022 in #ask-any-question
Extending AuthPage
Anyone have any suggestions on how to extend the AuthPage's RegisterPage to include additional input fields?
16 replies
RRefine
Created by exotic-emerald on 11/18/2022 in #ask-any-question
Can't refetch Auth
I'm not sure if this is a refine or react problem, but the Router Provider keeps thinking I'm unauthenticated, but I'm not. Below is my code:
const { isFetching, refetch: checkAuth } = useAuthenticated();

const { mutate } = useUpdate();

useEffect(() => {
if (isFetching) return;

if (teamId && membershipId && secret && userId) {
mutate(
{
dataProviderName: "teams",
resource: teamsResources.membershipStatus,
id: teamId,
values: { membershipId, secret, userId },
},
{
onSuccess: async () => {
try {
await checkAuth();

list(Constants.collections.organizations);
} catch (e) {
console.error(e);
}
},
}
);
}
}, [isFetching, membershipId, secret, teamId, userId]);
const { isFetching, refetch: checkAuth } = useAuthenticated();

const { mutate } = useUpdate();

useEffect(() => {
if (isFetching) return;

if (teamId && membershipId && secret && userId) {
mutate(
{
dataProviderName: "teams",
resource: teamsResources.membershipStatus,
id: teamId,
values: { membershipId, secret, userId },
},
{
onSuccess: async () => {
try {
await checkAuth();

list(Constants.collections.organizations);
} catch (e) {
console.error(e);
}
},
}
);
}
}, [isFetching, membershipId, secret, teamId, userId]);
Any ideas?
17 replies