mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Before this change calling renderToStringImpl would inject ReactDefaultBatchingStrategy after completion, even if a custom batching strategy was injected before. This makes renderToStringImpl keep a reference to the batching strategy before it runs and reinject it afterwards.