github-actions
released this
13 Oct 10:27
·
126 commits
to master
since this release
Patch Changes
-
#3238
28b702d
Thanks @ntucker! - Add renderDataHook() exportThis can be used instead of
makeRenderDataHook(DataProvider)
import { renderDataHook } from '@data-client/test'; const { result, waitFor } = renderDataHook( () => { return useSuspense(ArticleResource.get, { id: 5 }); }, { initialFixtures: [ { endpoint: ArticleResource.get, args: [{ id: 5 }], response, }, ], }, );
-
#3244
109c922
Thanks @ntucker! - Support actionTypes without _TYPE suffix -
#3238
28b702d
Thanks @ntucker! - makeRenderDataClient() -> makeRenderDataHook() (but keep the old name still)