1.0.0-rc.2 • Published 3 months ago

@exobase/use-next-action v1.0.0-rc.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

title: 'useNext' description: 'A root hook to handle the Next.js application framework' group: 'Root Hooks'

badge: 'Next.js'

Exobase root hook to handle function running on Next.js api functions

Install

yarn add @exobase/use-next

Import

import { useNext } from '@exobase/use-next'

Usage

import { compose } from 'radash'
import type { Props } from '@exobase/core'
import { useNext } from '@exobase/use-next'

export const pingEndpoint = async (props: Props) => {
  return {
    message: 'pong'
  }
}

export default compose(useNext(), pingEndpoint)
1.0.0-rc.2

3 months ago

1.0.0-rc.1

3 months ago