question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

withIAPContext freeze my custom context

See original GitHub issue

Please use Discussion board if you want get some help out of it. Please report issue if there is a bug.

Version of react-native-iap

7.4.1

Version of react-native

0.64.2

Platforms you faced the error (IOS or Android or both?)

Both

Expected behavior

Update state of my Providers. I read data from local database and save on my context and the data does not update.

Actual behavior

Using withIAPContext State data does not update

Tested environment (Emulator? Real Device?)

Emulator

Steps to reproduce the behavior

import React from "react";
import { Provider } from "react-redux";
import { MenuProvider } from 'react-native-popup-menu';
import { NativeBaseProvider } from 'native-base';
import { withIAPContext } from 'react-native-iap';

import AppNavigation from "./src/routes";
import store from "./src/utils/store";
import { TabProvider } from "./src/utils/TabProvider";

const Root = () => (
    <Provider store={store}>
        <NativeBaseProvider>
            <TabProvider>
                <MenuProvider>
                    <AppNavigation />
                </MenuProvider>
            </TabProvider>
        </NativeBaseProvider>
    </Provider>
)

export default withIAPContext(Root);

My app stuck on loading because the value on my custom context doesn’t update.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ithustlecommented, Sep 20, 2021

Hi @r0b0t3d. Sorry for delay.

  1. My custom context. Redux state works fine.
  2. Yep. For now, I had to downgrade to v6.
0reactions
stale[bot]commented, Apr 18, 2022

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community’s attention? This issue may be closed if no further activity occurs. You may also label this issue as “For Discussion” or “Good first issue” and I will leave it open. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

dooboolab/react-native-iap (Raised $40.00) - Issuehunt
Add custom data to product purchase in global listener ... After eject my expo project, and link, Build fail ... withIAPContext freeze my...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found