This repository has been archived by the owner on Nov 27, 2022. It is now read-only.
Dynamic routes Invariant Violation. #1219
Unanswered
micheilsgrey
asked this question in
Q&A
Replies: 1 comment
-
Couldn't find version numbers for the following packages in the issue:
Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3. The versions mentioned in the issue for the following packages differ from the latest versions on npm:
Can you verify that the issue still exists after upgrading to the latest versions of these packages? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Current behaviour
I am making some kind of sports statistics for teams and leagues. I fetching data from the server then I parse it and use it thru the redux. I made it first wrong using redux and state of the component. The problem is before i was seeing an activity indicator because i was getting data from redux then copy it to component state with right format for tab-view and populate it. But if data not fetched yet all i was seen is an endless activity indicator. Then i change my redux that way all should work right. I was getting all data from server then format it to the navigation state and connect it to tab-view. And now i am showing view with indicator, after routes fetched an formatted in redux, i trying dynamically populate tab-view with leagues and teams. If i open
tabview
from navigation with delay its working good, all data in place. But if i first at the start of app navigate to tab-view and watching screen with activity indicator then when data loaded app crashes witherror : "Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."
,Expected behaviour
Should populate all tabs and screens with data from redux.
Code sample
got examle from here to populate dynamically #599 (comment)
For Syntax Highlighting check this link
Screenshots (if applicable)
crash : https://streamable.com/09b5mh
no crash: https://streamable.com/fxu379
What have you tried
#654 read this #601 and this #599 but with no help, i am a noob at react-native so i don't really know what else to do. my code works only if i open tab view later after all data is ready to show.
Your Environment
Beta Was this translation helpful? Give feedback.
All reactions