I use CardElement from @stripe/react-stripe-js for stripe in one view and I use confirmCardPayment in another view
const card = useSelector(state => state.someObject.cardElement)
const result = await stripe.confirmCardPayment(secret.data, {
      payment_method: {
        card: card,
        billing_details: {
          name: 'Some name',
        },
      }
    });
How I can pass card element from different views? I've tried to put card to store and get it from here, but nothing works and I get next error
IntegrationError: We could not retrieve data from the specified Element. Please make sure the Element you are attempting to use is still mounted.
I know what that's error mean, but I need to pass card info through the different views.