ChrisThornham
SRR And Web Crawlers. Help Me Understand
Sweet! Thank you.
I agree. The "get indexed" timeline is extremely variable. I've been an online entrepreneur for 15+ years now, and I still don't fully understand how Google's algorithm works. Haha.
Have a good one.
5 replies
SRR And Web Crawlers. Help Me Understand
Haha. Chicken or egg. It's hard to build a sitemap without a crawler.
I just coded a custom sitemap generator using import.meta.glob from vite.
Do you think it will work if I add that sitemap to my site and a robots.txt file?
5 replies
How do I do something after a redirect, like reload the page, or in this case reconnect a websocket?
I think you'll have to recall your getUser function on each load. Or store the current user name. Then check it on page load. If the user name is the same, proceed. But if the user name has changed, rerun getUser.
10 replies
How do I do something after a redirect, like reload the page, or in this case reconnect a websocket?
Couldn't you use
onMount()
or createEffect()
on the page you are redirecting to?
Basically, when this page loads, check for a websocket connection. If it exists, return. If not, reconnect.10 replies
Can I Pass `createAsync()` a Signal?
That works great!
Is this the extent of the docs on
startTransition
?
https://docs.solidjs.com/reference/reactive-utilities/start-transition#starttransition15 replies
Unexpected SolidStart Behavior On Vercel. Can You Help?
For anyone who might stumble upon this in the future, I solved the problem by moving the navigation logic outside of
onAuthStateChange
and into it's own createEffect()
. This way, the if
check only runs when authStore
has updated.5 replies
How to access cookies with ssr?
Ok. You'll import
getCookie
at the top of your file.
Next, you'll want to access your cookie on the server. You can do that in SolidStart with "use server";
. Here's an example of how you can use "use server";
inside of a function.
9 replies
How to access cookies with ssr?
If you're interested in learning more about Vinxi, this link will help: https://vinxi.vercel.app/api/server/cookies.html
9 replies
Unexpected SolidStart Behavior On Vercel. Can You Help?
Here's an update.
I can correct the behavior if I add a 1 second delay between
setAuthStore
and the if
check for navigation.
So, it appears that setAuthStore
hasn't finished setting the auth state before the if
statement runs.
Is it possible to await setAuthState? Or correct this some other way? Adding a delay feels a bit hacky.
Also, why would this happen on Vercel but not in my local environment? Is there a network lag that occurs when calling setAuthState
on Vercel that doesn't occur locally?5 replies