Naresh Bhatia

Results 66 comments of Naresh Bhatia

@TristanJM, it's a workaround at best :-). TypeScript is getting very popular in the React circles now, so finding a natural solution would be good.

I stumbled upon this package today and found it very interesting. But looking at the last commit almost 2 years ago, was hesitant to pick it up. Until I saw...

I have hardcoded the desired font sizes in my theme for right now. Please let me know if there is a better way. overrideStyles: ({ adjustFontSizeTo, scale, rhythm }, options)...

Thank you for your suggestion, @jamlen. Since I posted this issue, I wrote my own code generation framework that is built from ground up to be monorepo friendly. Would love...

I too was having the same issue, so decided to try with a freshly created Vite app. To my surprise, I was not able to recreate the issue with the...

I figured out the issue! The trick was to realize that themes themselves can be thought of as an enum with values = `light`, `dark` and `system` – these don't...

@trojanowski, I am not able to understand your original proposal. As far as I can tell, you are proposing that the following code could handle errors properly by introducing an...

Thanks @FredyC. I tried this approach in my code and it seems to work well. I am seeing my ErrorBoundary catch the error and display the error message. The only...

Thanks @FredyC, I got it to work! Here's [the hook](https://github.com/nareshbhatia/stock-charts/blob/master/src/components/CompanySelect/useCompanyList.ts) and here's the [ErrorBoundary](https://github.com/nareshbhatia/stock-charts/blob/master/src/components/ErrorBoundary/ErrorBoundary.tsx). Note that my use case is REST, but the idea for handling errors is the same.

FYI, I am having mixed luck with throwing an error synchronously and having the `ErrorBoundary` handle it. 1. In [this custom hook](https://github.com/nareshbhatia/manage-my-money/blob/master/mmm-client/src/pages/AnalyzePage/useTransactionSummary.ts#L58-L60), throwing a synchronous error works perfectly. It is...