@mergeapi/vue-merge-link
v3.2.0
Published
See documentation at https://merge.dev/docs/linking-flow/get-started.
Keywords
Readme
vue-merge-link
See documentation at https://merge.dev/docs/linking-flow/get-started.
When updating this repo, bump the version number in package.json according to this semantic versioning scheme: https://docs.npmjs.com/about-semantic-versioning.
Frequently Asked Questions (FAQ)
Q: What version of Vue do you support?
A: This package is designed for Vue 3.0 and newer versions. If you're working with an older version of Vue, specifically Vue 2, you can use version 1.1 of this package. However, please be aware that the older versions of the package aren't actively supported. Also, Vue 2 itself is reaching end of life.
Q: Does this package support TypeScript?
A: Yes, as of 3.2.0. Type definitions ship with the package (types/index.d.ts), including MergeLinkProps, FilePickerConfig, and TenantConfig.
Q: Can I change linkToken (or other props) without remounting the component?
A: Yes, as of 3.2.0. Changing linkToken, tenantConfig, filePickerConfig, parentContainerID, or shouldSendTokenOnSuccessfulLink re-initializes Link with the new values. Callback props (onSuccess, onExit, onReady, onValidationError) can be swapped at any time and don't re-initialize Link. On older versions, bind :key="linkToken" to force a remount.
Q: What domains are necessary to whitelist for Content Security Policies (CSP)?
A: You can see the domains required for whitelisting in this help center article.
Q: My Vue component appears to be correctly set up, but when I click a button, nothing happens, no network calls are made, and scrolling is locked up as if a modal had opened. How can I fix this?
A: This behavior might occur if a child component attempts to render or perform operations before its parent component is fully mounted and ready. In such cases, it's important to ensure the child component is rendered only after the parent component is fully ready.
A common solution to this problem is to use the v-if directive to delay the mounting of the child component until the parent component is fully created and mounted.
