Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove state.pods; fix runtime & results #451

Merged
merged 1 commit into from
Aug 14, 2023

Conversation

lihebi
Copy link
Collaborator

@lihebi lihebi commented Aug 14, 2023

This is follow-up PR for #440 to fix broken things.

What's changed:

  • state.pods are removed and fixed all compile errors
  • Runtime and results are fixed.

Remaining TODOs regarding this centered-Yjs transition:

  • save results to Yjs and sync with peers
  • sync titles: doc title, scope title, pod title
  • fix copy-n-paste
  • fix jupyter import/export

@lihebi lihebi merged commit 11a0a3f into codepod-io:main Aug 14, 2023
Comment on lines +883 to +884
const podResults = useStore(store, (state) => state.podResults);
const codeMap = useStore(store, (state) => state.getCodeMap());
Copy link
Collaborator

@senwang86 senwang86 Aug 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the podResults not synced with YJS by design? @lihebi

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be saved to Yjs. It's on my TODO list.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be saved to Yjs. It's on my TODO list.

Is there any concern to append podResults to codeMap?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's an option; I'm thinking about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants