Neto
Neto
Explore posts from servers
SSolidJS
Created by Neto on 11/16/2024 in #support
Issue when navigating between pages?
When navigating between pages, some pages are just blank? Stackblitz: https://stackblitz.com/~/github.com/STNeto1/streaming-demo?file=src/routes/index.tsx Repo: https://github.com/stneto1/streaming-demo How to reproduce 1. open the app, wait for page to load 2. click the about link and later click the index link again 3. should work just fine 4. add the Component2 on the index page 5. the index page should be blank after navigating to about page and index again
3 replies
SSolidJS
Created by Neto on 1/21/2023 in #support
Context hierarchy
I was using the create context and such, and found a weird behaviour that even with a context hierarchy still using default values
<CounterProvider> // context provider is here
<App/> // counter is here but still using default behaviour
</ContextProvider>
<CounterProvider> // context provider is here
<App/> // counter is here but still using default behaviour
</ContextProvider>
Especially with the quote from the docs Default Context is used when no Provider is found above in the hierarchy. Stackblitz with example https://stackblitz.com/edit/solidjs-templates-zeprsr?file=src%2Findex.tsx,src%2Flib%2FCounterProvider.tsx,src%2FApp.tsx And there a bug or im missing something?
4 replies