- 
                Notifications
    You must be signed in to change notification settings 
- Fork 748
feat 5834: add outline - mo.outline() #6430
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
Conversation
| The latest updates on your projects. Learn more about Vercel for GitHub. 
 | 
|  | ||
| render(props: IStatelessPluginProps<Data>): JSX.Element { | ||
| const { label } = props.data; | ||
| const { items } = store.get(notebookOutline); | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this won't re-render on changes. you will need to create a new react component and then call useAtomValue(notebookOutline)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you will want to wrap the component in a <Provider store={store} too
| need to check that works as expected and write a few tests | 
1973a34    to
    de44b9f      
    Compare
  
    | you will need to run the test  | 
3f9e802    to
    a042ed7      
    Compare
  
    for more information, see https://pre-commit.ci
📝 Summary
Added mo.outline() element to show outline. Fixes 5834
🔍 Description of Changes