Our state of the art Gantt chart


Post by marcio »

Hey Greg,

Could you clarify the structure (a sample project would be great) that you mentioned when you say that you sharing the project?? In the same component with something like this??

      <BryntumGantt {...ganttConfig} project={project} />
      <BryntumTaskboard {...taskBoardConfig} project={project} />

Best regards,
Márcio


Post by greg.user1 »

Yes something like that, I use project.current instead :

<BryntumGantt {...ganttConfig} project={project.current} />
<BryntumTaskboard {...taskBoardConfig} project={project.current} />
<BryntumTimeline {...timelineConfig} project={project.curren.currentt} />

Post by marcio »

Hey,

I found out that is something happening with the StateTrackingManager, the configuration that you shared, and React. I create a ticket to investigate it because it's not something trivial. https://github.com/bryntum/support/issues/4869

Best regards,
Márcio


Post by greg.user1 »

Hi Marcio,

Thanks for finding this out.

Could you also confirm that you are aware with the issue with using useRef with React 18 in strict mode?
You can try it by updating my example to React 18 with strict mode:

<React.StrictMode>
      <App />
  </React.StrictMode>

Thanks.


Post by marcio »

Hey Greg,

We are aware of that, already have a ticket for it https://github.com/bryntum/support/issues/4654

For now, you can remove StrictMode for not having the error.

Best regards,
Márcio


Post Reply