team-monite / monite-sdk

Monite SDK: Embed invoicing and payables into your app
MIT License
12 stars 7 forks source link

fix(DEV-12191): allow grid to be wider that page width #241

Closed chebum closed 1 month ago

chebum commented 1 month ago

Goal of this PR is to

changeset-bot[bot] commented 1 month ago

🦋 Changeset detected

Latest commit: a1cd243b741756b47438e3b464cff57134f3271a

The changes in this PR will be included in the next version bump.

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

Not sure what this means? Click here to learn what changesets are.

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

chebum commented 1 month ago
  1. Extract columns to useMemo hook to preserve column definition instances between re-renders - this solves collapsing columns between re-renders.
  2. Perform column auto-size when columns set changes.
  3. useCurrencies.formatCurrencyToDisplay wrapped into useCallback to preserve function instance between re-renders.