Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BA-1162: add common hocs and hooks #52

Merged
merged 6 commits into from
Sep 12, 2023
Merged

Conversation

anicioalexandre
Copy link
Collaborator

@anicioalexandre anicioalexandre commented Sep 11, 2023

  • utils package update - v1.1.0

    • Adds a few changes to createAxiosInstance:
      • Adds axios interceptors.
      • Introduces servicesWithoutToken that doesn't include the token in the header for certain routes.
      • Decamelizes request params.
      • Adds tests.
    • Adds tests for getApiErrorMessage, setFormApiErrors and buildQueryString.
    • Creates withController, joinWithSeparator, useDebounce, and useDjangoOrderBy alongside tests.
  • test package update - v1.1.0

    • Add a default wrapper to the render method, alongside a new ComponentWithRootLayout wrapper.
    • Updates on jest.config and tsconfig files.
  • authentication package update - v1.0.3

    • Redesigning useLogout hook
    • It now returns an object instead of a function
    • It now uses resetQueries instead of invalidateQueries in order to reset the user cache properly.
  • tsconfig package update - v1.1.1

    • Updates nextjs.json configuration and creates test.json configuration.

@changeset-bot
Copy link

changeset-bot bot commented Sep 11, 2023

⚠️ No Changeset found

Latest commit: 1107c2a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

@ficast ficast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parece bom

@anicioalexandre anicioalexandre merged commit dc95ff0 into master Sep 12, 2023
5 checks passed
@anicioalexandre anicioalexandre deleted the BA-1162-common-hooks branch September 12, 2023 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants