Rohit Gohri

Results 115 comments of Rohit Gohri

Thanks for pointing it out. I haven't used callbacks so didn't notice them. I think the fix would just be fixing the styling here: https://github.com/rohit-gohri/redocusaurus/blob/7134ab9153aa1ae81191716d2e0ce98a6a6a228d/packages/docusaurus-theme-redoc/src/theme/Redoc/styles.css#L166-L184 We would probably need to...

If I understand the issue correctly, then I think this would be out of scope for this project and would be more suited for https://github.com/redocly/redoc ?

Oh that, I have used those. I'll try to add an example for that.

The problem is definitely with the ServerStyles and hydration. I suspect when react hydrates it removes the server style and then computes fresh styles in js. If we can somehow...

We render the styles component only on server - https://github.com/rohit-gohri/redocusaurus/blob/main/packages/docusaurus-theme-redoc/src/theme/Redoc/ServerStyles.tsx by modifying the webpack config only if it's a server build here - https://github.com/rohit-gohri/redocusaurus/blob/df43d742c376780d25a78e19731d43f3491b4ede/packages/docusaurus-theme-redoc/src/index.ts#L31-L38 On client it renders an empty...

Turns out that is not the problem. Fixed the hyrdation issue in https://github.com/rohit-gohri/redocusaurus/pull/223 but this issue is still there because all the class names change when client code loads

That can be fixed by adding `babel-plugin-styled-components` to the user's `babel.config.js` file. Can you try the release at https://redocusaurus-dcul1rve3-rohit-gohri.vercel.app/ to see if you can reproduce the issue? And if not...

I was using Firefox, there I could not reproduce. Checked in Chrome now, reproducible very easily. But I think the changes are in the right direction. Will work on it...

Instead of blindly setting Max Listeners to 1000, you can do : ``` queue.setMaxListeners(queue.getMaxListeners() + 1); ``` whenever you add a processor to the queue. If you are using Concurrency,...

> any other way to fix this? @sibelius Could you provide a code sample with which you are getting this (after increaseing listeners with `setMaxListeners`)?