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
Wrong typescript typings for PurchasesIntroPrice
#331
Comments
Hey @xseignard, thanks for bringing this to our attention! You're definitely right, these should be marked nullable if they can come back as null. Will update here once fixed! |
I think ideally,
The |
Going to confirm behavior in a sample app. Perhaps we have a bug in our hybrid-native middle layer, purchases-hybrid-common... |
Hi there, thanks for your reactivity 🤗 So as @beylmk says, there may be some bug (creating the |
@xseignard Hey! I've been working on trying to reproduce this and I'm not having any luck 😔 I'm trying with SDK
Out Loud Thinking
This pull request (RevenueCat/purchases-hybrid-common#106) should have also prevented the IdeaIt almost seems like this might be some reference or memory issue where the values in the Follow Up Questions
Thanks for reading through my thoughts and questions! Hoping we can figure out what's going for you soon Also, there is another report of introductory price some times returning null for this Flutter user in this community post. I don't know if these. are related or not but it's pretty curious suspicious 😬 |
@joshdholtz We ran into this issue in the following way:
For us this then resulted in a runtime error ( Ideal would be if |
@jamesisaac I was looking into this, and tried to reproduce if following your instructions, and I wasn't able to get your result. In any case, looking at the code of We fixed this exact same bug in RevenueCat/purchases-hybrid-common#106, which was released in purchases-hybrid-common 1.11.2. react-native-purchases < 4.5.2 would have the bug and see what you are seeing for cases where intro price is null. Is is maybe possible you are actually not testing with 4.5.2 code? Do you mind sharing the output of running Thanks! And sorry we haven't found a solution yet. |
@vegaro That is likely it, as our project was on 4.5.1! Apologies, missed the point that a fix for this was meant to have just landed in 4.5.2. I think before replying here I did check the 4.5.2 release notes and the changelogs linked for the other packages, and saw nothing relevant, but now I see that |
Amazing! Mystery solved 😄 I will close this issue then. Thanks for opening anyway! |
Just to clarify, I have no affiliation with @xseignard who originally opened this issue and does claim to be on 4.5.2 -- might be that they have a different scenario where this still can occur even with the latest fixes. |
Thanks for clarifying! I had understood that you were working in the same project. Let's see if @xseignard was having the same issue or a different one. |
Describe the bug
A clear and concise description of what the bug is. The more detail you can provide the faster our team will be able to triage and resolve the issue. Do not remove any of the steps from the template below. If a step is not applicable to your issue, please leave that step empty.
PurchasesIntroPrice
properties are notnull
PurchasesIntroPrice
properties arenull
The above situation is expected, it is only the
PurchasesIntroPrice
that should be fixed with something like:don't you think?
Additional context
Add any other context about the problem here.
Here is a screenshot of what I have in my app.
The text was updated successfully, but these errors were encountered: