Skip to content

Conversation

@severo
Copy link
Contributor

@severo severo commented Mar 27, 2025

Use a global Config context instead of passing props along all the components. I do this in preparation of using CCS modules (#165), since we need a way to override the classes, and it's a pain to pass all the possible overrides to each component. It's better to have a global flat config object that gives the custom values. The aim is to use this in apps that use the components, such as https://github.com/hyparam/space

@severo severo requested a review from platypii March 27, 2025 14:26
@severo
Copy link
Contributor Author

severo commented Mar 27, 2025

I'm merging to keep working on the config and CSS modules. Using the context is much better than the previous situation where we passed the props down. I'm not publishing a new version on npm yet, so, we can rework this afterward if needed cc @platypii

@severo severo merged commit e4ff6e8 into master Mar 27, 2025
4 checks passed
@severo severo deleted the move-config-to-react-context branch March 27, 2025 16:18
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