You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
PlanSchedule.tsx , as well as a few other components, is the parent of PlanQueryField.tsx (an input form). And TimeLine component is rendered inside PlanSchedule.tsx. , timelineTaskList transformed from the data retrieved from PlanQueryField.tsx (onPassingResult(tasks), see the codes below for more info)
The issue I have is I save the PlanQueryField.tsx' result inside a session storage, PlanSchedule.tsx and other components when mounted get the passing tasks array from onPassingResult(JSON.parse(sessionStorage.get("tasks")). All components was able to get the result information, including PlanSchedule.tsx. I was able to render the tasks in PlanSchedule.tsx also.
But somehow, Timeline graph does not show the graph. Only when I then zoom out then zoom in, the graph showed up. (The data for groups (Machines) did get populated, only the graph not show up unless I zoom it out then zoom in)
Note: before, when each time went to PlanSchedule.tsx, I have to submit query to get tasks info, it works. So for 1 time render it works, but to render the same tasks again it did not work (unless I zoom. And after that, if I pan to the left, it is normal Sep, Oct, Nov. Then when pan to the right, it got reverse Nov, Oct, Sep instead of Nov, Dec, Jan)
This is when I just click on the Plan Schedule tab to move to PlanSchedule component
This is after I click on Nov 7 and zoom out then zoom in
Library Version
"react-calendar-timeline": "^0.28.0",
"react": "^18.3.1", "typescript": "^4.9.5",
All browsers ha the same issue.
Additional context
If there is no suggestion, can you point out why it like that? Maybe it is related to the way it rendered? If you can give me where it cause this issue in the library maybe I could try to see if I can do anything.
The text was updated successfully, but these errors were encountered:
Describe the bug
PlanSchedule.tsx , as well as a few other components, is the parent of PlanQueryField.tsx (an input form). And TimeLine component is rendered inside PlanSchedule.tsx. , timelineTaskList transformed from the data retrieved from PlanQueryField.tsx (onPassingResult(tasks), see the codes below for more info)
The issue I have is I save the PlanQueryField.tsx' result inside a session storage, PlanSchedule.tsx and other components when mounted get the passing tasks array from onPassingResult(JSON.parse(sessionStorage.get("tasks")). All components was able to get the result information, including PlanSchedule.tsx. I was able to render the tasks in PlanSchedule.tsx also.
But somehow, Timeline graph does not show the graph. Only when I then zoom out then zoom in, the graph showed up. (The data for groups (Machines) did get populated, only the graph not show up unless I zoom it out then zoom in)
Note: before, when each time went to PlanSchedule.tsx, I have to submit query to get tasks info, it works. So for 1 time render it works, but to render the same tasks again it did not work (unless I zoom. And after that, if I pan to the left, it is normal Sep, Oct, Nov. Then when pan to the right, it got reverse Nov, Oct, Sep instead of Nov, Dec, Jan)
This is when I just click on the Plan Schedule tab to move to PlanSchedule component
This is after I click on Nov 7 and zoom out then zoom in
To Reproduce
PlanSchedule.tsx
PlanSchedule.tsx render
Library Version
"react-calendar-timeline": "^0.28.0",
"react": "^18.3.1", "typescript": "^4.9.5",
Additional context
If there is no suggestion, can you point out why it like that? Maybe it is related to the way it rendered? If you can give me where it cause this issue in the library maybe I could try to see if I can do anything.
The text was updated successfully, but these errors were encountered: