ewedlund

Results 13 comments of ewedlund

Not sure if this is helpful: I stumbled on this while having issues with [react-final-form-html5-validation](https://github.com/final-form/react-final-form-html5-validation) In a FieldArray with field validation, if I remove any object except the last one,...

> What's the difference between `to` and `href` in this component? And how are they supposed to work together? `to` is used with a [react router](https://reactrouter.com/) [Link](https://reactrouter.com/en/main/components/link#link), in order to...

> So we are assuming that, if the user passes the `to` prop, then the LinkListItem `tag` is a `react-router-dom` Link element that accepts a `to` prop? React Router is...

> I don't think that the `tag` can accept any React Element, it's an ElementType, so it can be something like `h1`, `p`, not a react router Link element nor...

> You are correct, it does work this way, but in this case the `to` prop is no longer transparent as you said it should be (and I agree), and...

> I made a few tests, and passing the `to` prop down to the `Tag` element like this: > > ![image](https://private-user-images.githubusercontent.com/1497044/316675109-60e4e5c1-2647-48e9-ab65-2c806838872f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTE0MzY2MzYsIm5iZiI6MTcxMTQzNjMzNiwicGF0aCI6Ii8xNDk3MDQ0LzMxNjY3NTEwOS02MGU0ZTVjMS0yNjQ3LTQ4ZTktYWI2NS0yYzgwNjgzODg3MmYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDMyNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDAzMjZUMDY1ODU2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MDVhM2M0OGEyMjU2MDQ4NDUzNGM4MjcyYjc0MjQzNGE0NGE0NjY4NDcyOWJiOWYxZTgwNGQyOWQ1NjY0YjQxZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.5dJGrAgNh6V-cyuvGU9Uy2AwOgmPORV4hW4ISojOWuU) So it seems that in this example you are...

> Thank you for testing it out @Nick87 > > Do you agree with @ewedlund removing 'to' property as suggested by the PR and using only href with a proper...

> > Sorry @Nick87 @ewedlund I'm on holidays atm I can only interact with my phone, not the best to look at the code :) anyway I understood the problem...

> @ewedlund is definitely right and what I suggested earlier does not work since it causes a full page refresh, but I may be on to something that seems to...

> Good catch @Nick87! @ewedlund is @Nick87 approach right for you? Not sure which one you mean but yes I think we have sorted things out, thank you to both...