hyperstack-org / hyperstack-org/hyperstack

possible problem with shared states and native js components

Open
#254 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
538
Forks
41
PR merge metrics
No merged PRs in 30d

Description

Not sure 100% what is going on, but when you use the Ant design tables, with a "render" column, and the render callback references shared state (like a hyper-model record value), there is no rerender of that component when the state changes. Suspect its because the rendering_context is somehow incorrect.

The work around is to access that same state variable somewhere else in a component that will call the HOC component.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with an Ant Design table whose render callback reads a shared state value, then compare it with the described workaround of reading that value elsewhere in a component. Trace the rendering_context used by the native JavaScript component and verify that changing the shared state causes the render callback to run again.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.