# React Hooks

@dynatrace-sdk/react-hooks

## 1.12.1

### Patch Changes

- Fix unhandled rejection in `useDql` when query cancellation fails in a DOM event. (APPDEV-17314)

## 1.12.0

### Minor Changes

- Add `filterStatement` support to `useGrailFields` DSS query options.

## 1.11.0

### Minor Changes

- Added new useUser and useUsers hooks. (APPDEV-16587)

## 1.10.0

### Minor Changes

- Add \_queryKey prop to useDql. (APPDEV-16480)
- Improve useDql documentation. (APPDEV-14261)

## 1.9.0

### Minor Changes

- Introduce useGrailFields hook.

### Patch Changes

- Update @dynatrace-sdk/http-client dependency. (APPDEV-11345)

## 1.8.0

### Minor Changes

- Add \_queryClient, \_getQueryKey props to useDql hook and \_UseDqlQueryClientProvider.

## 1.7.0

### Minor Changes

- Add `retryOnMount` option to useDql. (APPDEV-14947)

## 1.6.0

### Minor Changes

- Add placeholderData to useDql. (APPDEV-13788)

## 1.5.3

### Patch Changes

- Adjust metadata typings for UseDql hook. (APPDEV-14229)

## 1.5.2

### Patch Changes

- Fix useDql returning query states from previous executions. (APPDEV-14079)

## 1.5.1

### Patch Changes

- Fix delay time calculation in case of 429 error. (APPDEV-13480)

## 1.5.0

### Minor Changes

- Use returned `retryAfterSeconds` delay in case of 429 error response. (APPDEV-13480)
- Add config option to disable cancelling query for inactive tabs. (APPDEV-13572)

### Patch Changes

- Prevent useDql from returning previous query data. (APPDEV-13762)

## 1.4.3

### Patch Changes

- Updated README.md

## 1.4.2

### Patch Changes

- Fix issue with babel transformations for React setups. (APPDEV-13636)

## 1.4.1

### Patch Changes

- Fixed default onError handler. (APPDEV-13559)

## 1.4.0

### Minor Changes

- Add `useDql` hook. (APPDEV-12584)

### Patch Changes

- Deprecated AnalyzerHookOptions and added onError handler to HookOptions interface. (APPDEV-13031)

## 1.3.0

### Minor Changes

- Deprecate useSettings V1 React hooks. (PS-32564)

## 1.2.0

### Minor Changes

- Extend useAnalyzer hook options with onError.

## 1.1.1

### Patch Changes

- Fixed lack of execute function memoization in useAsyncInternal hook. (APPDEV-12674)

## 1.1.0

### Minor Changes

- Introduce useSettingsV2 hook. (PS-30612)

### Patch Changes

- Update documentation. (APPDEV-12495)
- Fix undefined params in useSettings, useSettingsV2, useDocument hooks. (APPDEV-12824)
- Adjust docs template. (APPDEV-12495)

## 1.0.0

### Major Changes

- Release of 1.0 version

### Patch Changes

- Updated dependencies
  - @dynatrace-sdk/app-utils@1.0.0

## 0.7.1

### Patch Changes

- Do not throw error when execute or refetch was called asynchronously

## 0.7.0

### Minor Changes

- BREAKING CHANGE: Change useDqlQuery isSuccess return type to boolean

### Patch Changes

- Updated dependencies. APPDEV-10675

## 0.6.0

### Minor Changes

- Introduce settings effective permissions hook.

### Patch Changes

- Updated dependencies
- Updated dependencies 

- Updated dependencies 

  - @dynatrace-sdk/client-davis-analyzers@1.8.0
  - @dynatrace-sdk/client-app-settings@1.8.0
  - @dynatrace-sdk/client-document@1.20.0
  - @dynatrace-sdk/client-query@1.17.0
  - @dynatrace-sdk/client-state@1.7.0

## 0.5.2

### Patch Changes

- Fix undefined params in useAppState react hooks.

## 0.5.1

### Patch Changes

- Mark error-types on `useSettings()` react-hooks to be possibly undefined

## 0.5.0

### Minor Changes

- Use cause property to return whole Response when error occurs.

### Patch Changes

- Updated dependencies 

  - @dynatrace-sdk/app-utils@0.5.0

## 0.4.4

### Patch Changes

- fix unstable reference in useAppState hook

## 0.4.3

### Patch Changes

- Fix query aborting

## 0.4.2

### Patch Changes

- Remove execute parameter of useDeleteAppStates

## 0.4.1

### Patch Changes

- Add support for React v18

## 0.4.0

### Minor Changes

- Introduce useAppFunction hook.

### Patch Changes

- Add a JSDoc comment to document the `autoFetchOnUpdate` option.

## 0.3.0

### Minor Changes

- Change useAnalyzer options

## 0.2.0

### Minor Changes

- Introduce useAnalyzer hook.

## 0.1.2

### Patch Changes

- Query will now automatically get polled even when no requestTimeoutMilliseconds has been set.

## 0.1.1

### Patch Changes

- Update documentation for npm

## 0.1.0

### Patch Changes

- Initial release of the @dynatrace-sdk/react-hooks package