dark
dark copied to clipboard
The lightweight and powerful UI rendering engine without dependencies and written in TypeScript💫 (Browser, Node.js, Android, iOS, Windows, Linux, macOS)
The following style ```js import { Link } from '@dark-engine/web-router' import { styled, css } from '@dark-engine/styled' const disabledStyle = ({ disabled }) => { if (disabled) { return css`...
I need a function that would return me if a route is matched for a given path. Something like `matchRoute(routesArray, path)` which return null or an array of matched routes....
I have encountered a behavior to investigate further: ```js const DynamicPageMeta = component(({ currentPath, slug, language }) => { const { data } = useCatalogQuery(catalogQueries.product, { slug }) if (!data)...
I am using a `Page` component that has an `App` child component. On the server: 1. a `DataClient` is created and given to the `App` component 2. The `App` component...
I am experiencing hydration errors seemingly caused by the useQuery hook. I'm trying to reproduce it reliably but I am having trouble with that, as the hook works fine in...
In text inputs, the `value` prop doesn't seem to be respected. The input HTML attribute value matches the variable in the component state, however the rendered value can differ. It...
I apologize, this is not repro code, this is the exact code where I have experienced this issue for the third time. When a Link component wraps an element, a...
Web router expects factory functions in the `component` field, which means I cannot do ```js // ./routes.jsx import AuthProvider from './components/AuthProvider' const Dashboard = lazy(() => import('./pages/Dashboard')) export const routes...
I am trying to use `data`. ~~It seems like `useQuery` hangs until timeout if the server api object contains a fetch call. ~~ ~~The API endpoint receives no requests, as...