-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(pickup): fix map not mounting again after having been unmounted (#…
…239) Fixes an issue where the map would not work again after removal. Updates the `usePickupLocationsMap`-composable to use a global state where possible and not use memoization to achieve the same. Additionally fixes an issue where the map could be panned before being fully loaded. Fixes: INT-641 --------- Co-authored-by: Edie Lemoine <[email protected]>
- Loading branch information
1 parent
ae39b79
commit e810b8e
Showing
6 changed files
with
213 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: 'Build (legacy v5)' | ||
description: 'Build the project' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- uses: myparcelnl/actions/yarn-install@v4 | ||
with: | ||
node-version: 18 | ||
|
||
- name: 'Cache build' | ||
uses: actions/cache@v4 | ||
id: cache-build | ||
with: | ||
path: | | ||
./dist | ||
key: ${{ runner.os }}-build-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/src') }} | ||
|
||
- name: 'Create build' | ||
if: steps.cache-build.outputs.cache-hit != 'true' | ||
run: yarn build | ||
shell: bash | ||
env: | ||
NODE_OPTIONS: --openssl-legacy-provider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: 'Run tests' | ||
description: 'Run tests and upload coverage' | ||
|
||
inputs: | ||
codecov-token: | ||
description: 'Codecov token' | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: 'Cache coverage' | ||
uses: actions/cache@v4 | ||
id: cache-coverage | ||
with: | ||
path: ./coverage | ||
key: ${{ runner.os }}-coverage-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/src') }} | ||
restore-keys: | | ||
${{ runner.os }}-coverage-${{ hashFiles('**/yarn.lock') }} | ||
${{ runner.os }}-coverage- | ||
- uses: myparcelnl/actions/yarn-install@v4 | ||
if: steps.cache-coverage.outputs.cache-hit != 'true' | ||
with: | ||
node-version: 18 | ||
|
||
- name: 'Run tests' | ||
if: steps.cache-coverage.outputs.cache-hit != 'true' | ||
run: ./node_modules/.bin/cross-env yarn test:unit --coverage | ||
shell: bash | ||
env: | ||
NODE_ICU_DATA: node_modules/full-icu | ||
|
||
- uses: codecov/codecov-action@v4 | ||
with: | ||
token: ${{ inputs.codecov-token }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: 'On push (legacy v5) ⚙️' | ||
|
||
on: | ||
push: | ||
branches: | ||
- v5.x | ||
|
||
paths-ignore: | ||
- ./**/*.md | ||
- ./.idea/** | ||
|
||
concurrency: | ||
group: '${{ github.workflow }}-${{ github.ref }}' | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: ./.github/actions/test-v5 | ||
with: | ||
codecov-token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
build: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: ./.github/actions/build-v5 | ||
|
||
release: | ||
runs-on: ubuntu-22.04 | ||
needs: | ||
- test | ||
- build | ||
steps: | ||
- uses: myparcelnl/actions/setup-git-credentials@v4 | ||
id: credentials | ||
with: | ||
app-id: ${{ secrets.MYPARCEL_APP_ID }} | ||
private-key: ${{ secrets.MYPARCEL_APP_PRIVATE_KEY }} | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{ steps.credentials.outputs.token }} | ||
fetch-depth: 0 | ||
|
||
- uses: ./.github/actions/build-v5 | ||
|
||
- uses: myparcelnl/actions/semantic-release@v4 | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
with: | ||
token: ${{ steps.credentials.outputs.token }} | ||
|
||
rebase-prs: | ||
needs: | ||
- test | ||
- build | ||
uses: ./.github/workflows/rebase-prs.yml | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: 'Run tests (legacy v5) 🧪' | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- v5.x | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: ./.github/actions/test-v5 | ||
with: | ||
codecov-token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
build: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: ./.github/actions/build-v5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters