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

Add useAppLinking hook #846

Merged
merged 2 commits into from
Dec 3, 2024
Merged

Add useAppLinking hook #846

merged 2 commits into from
Dec 3, 2024

Conversation

gciotola
Copy link
Contributor

@gciotola gciotola commented Nov 29, 2024

What I did

I've implement a new hook to handle navigation between apps that use wouter capabilities to handle routing inside and outside current router base path.

Usage:

const { navigateTo } = useAppLinking()

return (
  <a {...navigateTo({ app: 'shipments',  resourceId: shipment.id })>
      View shipment details
  </a>
)

How to test

Checklist

  • Make sure your changes are tested (stories and/or unit, integration, or end-to-end tests).
  • Make sure to add/update documentation regarding your changes.
  • You are NOT deprecating/removing a feature.

Copy link

netlify bot commented Nov 29, 2024

Deploy Preview for commercelayer-app-elements ready!

Name Link
🔨 Latest commit e83bb4a
🔍 Latest deploy log https://app.netlify.com/sites/commercelayer-app-elements/deploys/674df5fc3205dd00093d32af
😎 Deploy Preview https://deploy-preview-846--commercelayer-app-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@gciotola gciotola marked this pull request as draft November 29, 2024 17:23
@gciotola gciotola marked this pull request as ready for review December 2, 2024 13:07
Copy link

pkg-pr-new bot commented Dec 2, 2024

npm i https://pkg.pr.new/commercelayer/app-elements/@commercelayer/app-elements@846

commit: e83bb4a

@gciotola gciotola force-pushed the apps-linking branch 2 times, most recently from 86d118a to d72c7f9 Compare December 2, 2024 15:21
@gciotola gciotola changed the title useAppLinking Add useAppLinking hook Dec 2, 2024
@gciotola gciotola merged commit 767ff98 into main Dec 3, 2024
7 checks passed
@gciotola gciotola deleted the apps-linking branch December 3, 2024 14:30
@gciotola gciotola added the enhancement New feature or request label Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants