menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

Channels
Team
Posts
Members
Info

Hey can someone help me? Using tooltips throws this error.

NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.

message-simple
0

How the hell do I use the examples with typescript?

TS2322: Type '{ children: string; getProps: ({ isCurrent }: LinkGetProps) => any; to: string; replace?: boolean | undefined; state?: any; innerRef?: Ref<HTMLAnchorElement> | undefined; ... 262 more ...; onTransitionEndCapture?: TransitionEventHandler<...> | undefined; }' is not…

message-simple
1

Reach Router - BaseContext

I'm attempting to integrate Reach Router with a legacy React app, where I need to use my own implementation of navigate rather than the one defined by createHistory. LocationProvider let's me get half of the way there, by letting me pass history but Link and useNavigate get the…

message-simple
0

Redirect to relative path not working

If the value of the "to" prop on a Redirect component is "baz" at "http://127.0.0.1/foo/bar"; however, it redirects to "http://127.0.0.1/baz" not "http://127.0.0.1/foo/baz", is that expected? I've seen an issue on GitHub detailing the problem, but they were closed even though…

message-simple
8

useLocation hook?

Would anyone be interested in a useLocation hook that returns the location context? I think this gives more of a declarative API versus exporting the context itself.

message-simple
9

There's an undocumented (and very useful) `openOnFocus` prop! [ComboBox]

While reading through the ComboBox source code I stumbled upon a "hidden" prop. It does exactly what is says. It opens the suggestion popover when the input is focused! I tried to replicate this functionality before, but it did not work as well. Here's a small demo:…

message-simple
0

exporting `match` util function

I think it would be useful to export the match utility function so that other parts of the app (redux reducers and side-effect middleware) can react to route changes and whatnot. What do you think?

message-simple
0

Router: A title prop to update page titles

I just made a feature proposal on GitHub to add a title prop to the children of Router that would update the page title when that component renders. I think this would add a useful accessibility feature to the API. What do you all think?

message-simple
0

passing props with redirect component

hello. is there any documentation about passing a props to Redirect component like this in react-router? if none is there a way? like a "hack" if not. I was thinking, since we're using redux so for every link ill put a action that pass the path so i can grab it from the store.

message-simple
3

Question Regarding Push/Pop state in `@reach/router`

I am developing a GatsbyJS site and thus am using @reach/router as a result. It is a great router! I have an issue while trying to implements some page transitions. I am using react-pose for the transitions. I feel it relies on a POP and a PUSH state to initiate the exit and…

message-simple
0