Skip to content

Releases: danybeltran/swr-micro

v0.1.1

08 Apr 19:52
19ce003
Compare
Choose a tag to compare

Adds RequestFn type that helps add static typing to reusable hooks. Example:

import useSWR, { RequestFn } from 'swr-micro'

export const useUrl: RequestFn = (url, config) => {
  return useSWR('https://api.com' + url, config)
}

v0.0.7

13 Feb 22:28
e44affb
Compare
Choose a tag to compare
Merge pull request #1 from danybeltran/feat-typing

Feat typing