Skip to content

Resolve fiber === null in certain app structures / conditions #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

theprojectsomething
Copy link

@theprojectsomething theprojectsomething commented Jun 5, 2023

Per #32, when rendering our (large) react app, RRT was reporting critical errors and either hanging before or during render, resulting in - at best - a selection of orphaned nodes in the Rempl viewer.

Unsure of the specifics leading to the error in our use case. Am hazarding a guess that it may be due to app size / efficiencies relating to the message bus (on initial render there are between 4-8k items in the load queue, which increase as the page is used) or the possibility of multiple react roots due to e.g. third party scripts, dev environment tools, etc. But it could be something else entirely.

This fix is knowingly ignorant but, as far as we can tell, resolves the issues in rendering our app. There may be side effects we are unaware of. Specifically it includes two minor changes that:

  • resolve an issue in the event processing pipeline where fibers return null and result in a critical error
  • apply a band-aid solution to a "knock-on" effect of the fix that results in missing / invalid fibers in active trees / fiber maps, causing the UI render to fail in Rempl (loading fails, event queue continues to grow)

We're currently (successfully) hotlinking to a build from this fork, but are hoping to be able to help resolve the root cause upstream and revert to the main cdn package.

Note: this PR is intended to evolve based on feedback 😅

Should also note, loving the project. Very welcome addition to the react toolset. Keen to contribute however we can.

- Resolves an issue in the event processing pipeline where fibers return null and result in a critical error (loading fails, event queue continues to grow)
- Applies a band-aid solution to a "knock-on" effect of the fix that results in missing / invalid fibers in active trees / fiber maps, causing the UI render to fail in REMPL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant