react
react copied to clipboard
React bindings for atomic-router
https://github.com/atomic-router/react/blob/d2c936dea41b50ad933afb7eeab2f2aba0e42bf9/src/link.tsx?rgh-link-date=2022-09-08T13%3A55%3A34Z#L17 Some ui frameworks require components to forward ref, otherwise react will throw an error: ```Function components cannot be given refs. Attempts to access this ref will fail. Did you...
Would be nice to be able to provide a layout wrapper for group of routes, passed layout will be rendered only if some route from list is opened. Layout itself...
I suggest to add an static operator (like [@effector/reflect](https://github.com/effector/reflect)) to define groups of routes and their veiws I think, that declarative static config it is better for a few reasons:...
[Example in Usage](https://github.com/Kelin2025/atomic-router-react#usage) doesn't work when you wrap App component to a React StrictMode
In each page I use [Suspense ](https://reactjs.org/docs/react-api.html#suspense) with fallback for lazy loading. ```tsx const Page = lazy(() => import('./ui')) export const SomePage = () => ( ) ``` ```tsx import...
When installing `atomic-router-react: 0.9.1` there is a conflict if the project has a new version of `atomic-router: 0.10.0` installed. I think this occurs because this package's `peerDependencies` specifies `atomic-router:^0.9.0`. Logs...
Component doesn't know about the nested route. When it is necessary to mark a nested route from the main one. `const router = useRouter(); const path = useUnit(router.$path); const isNested...
`tsconfig.json` my project ```json { "compilerOptions": { ... "module": "ESNext", "moduleResolution": "Bundler", ... } } ``` I solved this problem by adding a line in `package.json` "atomic-router-react" package a line...