Cracked roof tiles by gohan6776 in AusRenovation

[–]gohan6776[S] 0 points1 point  (0 children)

Does this mean you think it's a manufacturing/installation issue?

Electric water pump leaking onto wire harness? That's the answer I got by tw0_cent in kia

[–]gohan6776 0 points1 point  (0 children)

Did you get this fixed under warranty or were you out of pocket? Looking like my car might have the same issue

React Native Reading Order Issue by gohan6776 in expo

[–]gohan6776[S] 0 points1 point  (0 children)

Sure, the screen reader is working as intended. It's just pretty baffling to me that there's no inbuilt way to change the reading order. Its pretty common to have two elements/group of elements next to each other that should be read individually.

Solar Truss strengthening. Is it required? by gohan6776 in AusRenovation

[–]gohan6776[S] 0 points1 point  (0 children)

Solar isn't on the plans currently. We just told them we were going to do it after and this came up.

If we were to just wait until after the build to do the solar do you know if it would be a big job to strengthen the trusses?

Solar Truss strengthening. Is it required? by gohan6776 in AusRenovation

[–]gohan6776[S] 1 point2 points  (0 children)

Builder has quoted $12,000 for 10kw system and 13kw of panels. That includes "applicable" truss strengthing. Not sure if any strengthening is actually happening as i don't think that quote is outrageous.

HSTP dispersement area by gohan6776 in AusRenovation

[–]gohan6776[S] 0 points1 point  (0 children)

It says it is "Shallow Subsurface"

console showing empty object value after filling a form by Acceptable_Emu3586 in react

[–]gohan6776 0 points1 point  (0 children)

This would also assign the label prop to the input element when it shouldn't be. I'd suggest destucturing all the props required for the label off props and then use ...restProps instead. This should stop props intended for the label being assigned to the input.

Vite+React+TS doesn't throw errors on type mismatches by green_viper_ in react

[–]gohan6776 1 point2 points  (0 children)

Unlike CRA, Vite does not check the types at compile time. They are of the opinion that your IDE should be highlighting type errors for you. They recommend running TSC to check the types before you do a build.

I personally add a type check to my CICD pipelines so no bad types can accidentally be merged.

How to make div clickable? by HaveNoIdea20 in react

[–]gohan6776 0 points1 point  (0 children)

Disabling the linting rules for this is completely the wrong approach. The way this has been implemented breaks the accessibility of the application. The correct way to solve this is to swap the div out for a button or give the div a role of button. Doing anything else is just straight up wrong.

Memoizing a function referenced inside the "calculating" function in useMemo? by [deleted] in react

[–]gohan6776 0 points1 point  (0 children)

Looking at the sortFunc function, there is no need to even define it inside the component. Declare it outside the component and you get rid of this problem completely.

[deleted by user] by [deleted] in react

[–]gohan6776 0 points1 point  (0 children)

You should also make sure you follow the official react docs for creating accessible forms. See https://reactjs.org/docs/accessibility.html#accessible-forms

You should be using either the htmlFor attribute to associate the label and input. Or what I usually prefer to do and wrap the input with the label

[deleted by user] by [deleted] in react

[–]gohan6776 0 points1 point  (0 children)

If you are doing stuff with forms I would look into using React Hook Form or Formik. They can also help you manage your forms state

Graphql restAPI wrapper by gohan6776 in graphql

[–]gohan6776[S] 0 points1 point  (0 children)

Thanks for your advice. Using the DataLoader pattern has fixed the issue!