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

perf: config.blocks - deduplicate shared blocks #10905

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

AlessioGr
Copy link
Member

WIP

AlessioGr added a commit that referenced this pull request Feb 7, 2025
This PR exposes the `ClientConfig` as an argument to the lexical `ClientFeature`. This is a requirement for #10905, as we need to get the ClientBlocks from the `clientConfig.blocksMap` if they are strings.

## Example

```tsx
export const BlocksFeatureClient = createClientFeature(
  ({ config, featureClientSchemaMap, props, schemaPath }) => { // <= config is the new argument
  	
  	// Return ClientFeature
})
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant