-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
feat: allow props.initialData to be a function #8135
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
feat: allow props.initialData to be a function #8135
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
|
It's good for review! @dwelle I'm not 100% convinced about the wording for the |
|
Looks good, thanks for the PR! |
|
@es-romo I forgot to mention that the docs changes must be made in a separate PR merging them into When you're at it, could you also update the description of this page so it reflects the function signature https://docs.excalidraw.com/docs/@excalidraw/excalidraw/api/props/initialdata? |
|
Also, please update the changelog |
b11be5c to
e24b7ca
Compare
|
Good to go, thanks! |
initialDatato be a function.api/props/andapi/props/initialdatadocsThe function is being called twice in development builds because of strict mode but it does not impact production builds.
close: #8107