get-pathname
Uses next.js functionality
Retrieves pathname for the currently rendered page in React Server Component. Works the same as usePathname, but in a React server component.
The getter almost fully utilizes Next.js functionality
How to
import { getPathname } from '@nimpl/getters/get-pathname'
export default function Component() {
const pathname = getPathname()
return (
// ...
)
}