lanthe
lanthe
CCConvex Community
Created by lanthe on 3/29/2024 in #support-community
convex-session-id doesn't consistently get set
that's 2 hours of my life i'm never getting back 😛
14 replies
CCConvex Community
Created by lanthe on 3/29/2024 in #support-community
convex-session-id doesn't consistently get set
welp. i restarted chrome and now it works fine
14 replies
CCConvex Community
Created by lanthe on 3/29/2024 in #support-community
convex-session-id doesn't consistently get set
The bad behavior only happens in chrome? Safari successfully holds on to the first session id generated
14 replies
CCConvex Community
Created by lanthe on 3/29/2024 in #support-community
convex-session-id doesn't consistently get set
At this point my code isn't doing much, so I'm pretty stumped?
14 replies
CCConvex Community
Created by lanthe on 3/29/2024 in #support-community
convex-session-id doesn't consistently get set
console.logging is telling me that it successfully gets set the first time the page loads, but then that gets wiped before I can interact with it in the console. The second time the page loads, a new UUID gets generated and that one gets successfully set and stored, and doesn't get wiped.
14 replies
CCConvex Community
Created by lanthe on 3/29/2024 in #support-community
convex-session-id doesn't consistently get set
my understanding is that this should set convex-session-id in session storage right away, but it doesn't. If I reload the page, then it does. I am currently digging around your sessions.ts to figure out what it's doing but it's slow going because I'm just not that fluent in js yet
14 replies
CCConvex Community
Created by lanthe on 3/29/2024 in #support-community
convex-session-id doesn't consistently get set
import { api } from "../convex/_generated/api";
import { useSessionQuery, useSessionMutation } from "./sessions";
import ImageProcessor from "./ImageProcessor";


export default function App() {
console.log(sessionStorage);
return (<main><div>hello</div></main>);
}
import { api } from "../convex/_generated/api";
import { useSessionQuery, useSessionMutation } from "./sessions";
import ImageProcessor from "./ImageProcessor";


export default function App() {
console.log(sessionStorage);
return (<main><div>hello</div></main>);
}
14 replies
CCConvex Community
Created by lanthe on 3/29/2024 in #support-community
convex-session-id doesn't consistently get set
App.tsx:
14 replies
CCConvex Community
Created by lanthe on 3/29/2024 in #support-community
convex-session-id doesn't consistently get set
import { StrictMode } from "react";
import ReactDOM from "react-dom/client";
import "./index.css";
import App from "./App";
import { ConvexProvider, ConvexReactClient } from "convex/react";
import { SessionProvider } from "./sessions";

const convex = new ConvexReactClient(import.meta.env.VITE_CONVEX_URL);

ReactDOM.createRoot(document.getElementById("root")!).render(
<StrictMode>
<ConvexProvider client={convex}>
<SessionProvider>
<App />
</SessionProvider>
</ConvexProvider>
</StrictMode>
);
import { StrictMode } from "react";
import ReactDOM from "react-dom/client";
import "./index.css";
import App from "./App";
import { ConvexProvider, ConvexReactClient } from "convex/react";
import { SessionProvider } from "./sessions";

const convex = new ConvexReactClient(import.meta.env.VITE_CONVEX_URL);

ReactDOM.createRoot(document.getElementById("root")!).render(
<StrictMode>
<ConvexProvider client={convex}>
<SessionProvider>
<App />
</SessionProvider>
</ConvexProvider>
</StrictMode>
);
14 replies
CCConvex Community
Created by lanthe on 3/29/2024 in #support-community
convex-session-id doesn't consistently get set
in main.tsx:
14 replies
CCConvex Community
Created by lanthe on 3/29/2024 in #support-community
convex-session-id doesn't consistently get set
here's what i have now, simplifying away everything else:
14 replies
CCConvex Community
Created by lanthe on 3/4/2024 in #support-community
Netlify deploy build errors
well!! thanks so much
23 replies
CCConvex Community
Created by lanthe on 3/4/2024 in #support-community
Netlify deploy build errors
i don't really understnad why... the error doesn't look like a type error to me
23 replies
CCConvex Community
Created by lanthe on 3/4/2024 in #support-community
Netlify deploy build errors
skipLibCheck: true at the top level seems to have worked
23 replies
CCConvex Community
Created by lanthe on 3/4/2024 in #support-community
Netlify deploy build errors
i do! whoa. lemme try that
23 replies
CCConvex Community
Created by lanthe on 3/4/2024 in #support-community
Netlify deploy build errors
I had already tried Bundler unsuccessfully, and skipLibCheck was true by default, but I guess I'll --typecheck disable
23 replies