resolve
resolve copied to clipboard
Please add useCDNUrl react hook
In the "personal-data" example, the custom UploaderContext is used to get the upload CDN URL. https://github.com/reimagined/resolve/blob/dev/examples/ts/personal-data/client/components/ImageUpload.tsx#L55
But I figured out that the CDN URL is also available in ResolveContext:
import { ResolveContext } from '@resolve-js/react-hooks'
const { cdnUrl: CDNUrl } = useContext(ResolveContext)
Please, add the useCDNUrl hook to get cdnUrl directly from the ResolveContext.