Comments (2)
Problem 1: Wrapping <div>
inside client only is redundant, Nuxt has no issues with rendering html markup
<template>
<div ref="paypalContainer" />
</template>
Problem 2: Checking for process.client inside a function that is called inside mounted() hook is redundant, because mounted hook is never called on the server, nextTick is also redundant
mounted () {
this.renderPayPalButton()
},
Problem 3: async functions should be called with await
mounted () {
await this.renderPayPalButton()
},
Problem 4: wrapping component in client-only is redundant because you use mounted, the only reason for using client-only is when you want to call something in setup or you have some logic that should be executed before component is mounted but still only on the client, here we clearly see - it's not the case
<PayPalButton />
Problem 5: Plugins that are called on the client only should contain .client.ts in the name or be loaded inside plugins with a special syntax (check Nuxt docs)
Problem 6: When you want to get a solution to the problem you should describe it properly, if something is not showing you probably get some errors in terminal/console, what those are?
from paypal-js.
@Rexhmati did @AndrewBogdanovTSS's answers help solve your issue?
from paypal-js.
Related Issues (20)
- [Bug] Button Installment Period not working HOT 2
- Payment Method HOT 18
- [Bug] Styling, button (pill) corners become square on hover [Firefox] HOT 2
- The window.paypal global variable is not available. HOT 2
- PayPalApplePayError: accountlifecycleserv responded with no legal_country_code field HOT 3
- How to inject crossorigin="anonymous" in script tag when using loadScript HOT 3
- [Bug] CreateOrderRequestBody seems incorrectly typed HOT 2
- [Bug] Paypal Subscription Error : Billing Plan Override is not allowed due to insufficient permissions HOT 3
- [Bug] Border of PayPal button invisible on some resolutions HOT 2
- [Bug] Infinite loading screen on safari when setting up a subscription HOT 2
- [Bug] Button background changes to blue when pending transaction HOT 2
- [Bug] the paypal Frame flicker when use onClick to validate form HOT 7
- Type mismatch in lastest version of @paypal/paypal-js and @paypal/react-paypal-js HOT 1
- [Feature] CardFields types HOT 2
- [Feature] Feature request
- Paypal JS SDK not loading for some users HOT 1
- https://join.robinhood.com
- [Bug] Mobile phone validation is incorrectly displaying as invalid when the phone number is valid HOT 1
- [Feature] Feature request
- [Feature] Feature request HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paypal-js.