-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Attempting to load Redux devtools freezes the page #919
Comments
I think the dev tools are running out of memory trying to parse and stringify the large body of text. If you cut the post content down to a smaller size the dev tools will run. This kind of has greater implications as well. |
Nice find @BE-Webdesign, I can confirm that shortening cc @mtias re starter post content being too long and consuming too much memory. It sounds like we need to do some memory profiling, and testing on lower-perfomance devices, because there are likely already some issues here even without Redux devtools. Using real-world examples that are much longer and more complicated than the demo content, we should set up some stress/performance tests with very long content as well. Probably OK for something like our full-content tests, but I'm not sure if we want to run them on every build. cc @iseulde, I wonder if something like #847 would also help with this. |
@nylen definitely, it's time to start looking at how to profile and test different post sizes. Do you want to look into how we could set this up? I have a few real-world examples from Matt of posts that are quite long and complicated, and which struggle in tinymce already. I'm also a bit concerned with validating individual block shapes through schemas (#914) because of how expensive things could get. |
@nylen I'm unsure about the impact. Something I have in mind that we could try is just adding the
@mtias Could you share those? |
Sure, can you share those examples with us somehow? We'll probably want to adapt them to contain blocks. I'm also aware of a couple others inside a8c that would need sensitive information removed. I think something like |
This seems true of any way of doing the things listed in #914 (mainly future enhancements). I think it is better for us to handle this complexity in a reusable way than to push it onto plugin authors. |
On a hunch I dropped the list blocks from It opens a question about the sorts of values we want to allow to be set into attributes. Should they be non-complex values only (numbers, strings, booleans)? How do we enforce this, or do we even want to? What alternatives do we propose instead (in this case, perhaps in block component state). Still not totally clear on why the TinyMCE instance specifically causes the page to crash. cc @EphoxJames |
Oh! I missed this, yeah we should assume that all the attributes we pass to |
Self explanatory I think. We should
git bisect
to figure out when this started happening.The text was updated successfully, but these errors were encountered: