Closed arctic-hen7 closed 1 year ago
This repo is set up to triage issues with Tribble, but this issue couldn't be processed. If you deliberately didn't use Tribble to report this issue, you can safely ignore this warning. If you did, something's gone wrong here.
Investigating this further, Perseus is actually respecting Sycamore's scope boundaries perfectly, and the structure of the render core in Perseus makes it impossible to do anything else (we have to call those functions with a Scope
anyway). The problem here seems to be, from a quick RUST_BACKTRACE=1
, that Tokio doesn't like the fact that Perseus builds everything in parallel. It seems to be that that is somehow causing this error.
@lukechu10 can you shed any light on why this might be in terms of Sycamore's internals?
The most obvious temporary solution to this would be to create a Perseus wrapper for Suspense
that just renders the loading state on the engine-side, since I'm willing to call that a Suspense
should never be evaluated on the engine-side (the state platform replaces that).
ok, The issue is still not resolved from my end.
@afidegnum yes, I've just been postulating a fix. It's non-trivial to fix this at the moment, since Perseus' build system seems to render this impossible right now. I imagine there is a way to fix this, but I haven't gotten around to it yet. It should be done by the next release.
Okay, #242 introduces proper suspended state in Perseus' state platform, which provides a more Perseus-y way to achieve this, without needing to use Sycamore's Suspense
component. This will be closed once that PR is merged!
Discussed in https://github.com/framesurge/perseus/discussions/187