• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Roblox / roact-rodux / 92
31%

Build:
DEFAULT BRANCH: master
Ran 13 May 2020 07:35PM UTC
Jobs 1
Files 8
Run time 5s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
92

push

travis-ci

web-flow
Connect to store before children connect to the store (#31)

Connecting to the store in didMount means that child components connect to the store before their parent component. This causes them to render before their parent component which can lead to issues if the state they need depends on their props and is no longer valid due to the store changing. 

The specific problem I have is that when a Player leaves, the in game playerlist has errors because the children are updated before their parent. The child component tries to access information that no longer exists in the store, but the parent will stop rendering this child when it updates due to the player leaving anyway.
I think we should be able to fix this by changing it so that connecting to the store in RoactRodux is done in init, not didMount since init is called first for parents and then for children whereas didMount is called for children first. 

We could also fix this more explicitly by connecting to the store by priority (deeper in the tree = less priority). This might be a possible future fix to the problem.

I added configuration for this change by copying the GlobalConfig pattern from Roact. Let me know if I should do something a bit more lightweight than this instead.

140 of 140 relevant lines covered (100.0%)

12.04 hits per line

Jobs
ID Job ID Ran Files Coverage
1 92.1 (LUA="lua=5.1") 13 May 2020 07:35PM UTC 0
100.0
Travis Job 92.1
Source Files on build 92
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #92
  • ed7eb70b on github
  • Prev Build on master (#82)
  • Next Build on master (#94)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc