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

Sync specific data types #426

Merged

Conversation

selankon
Copy link
Collaborator

@selankon selankon commented Jun 14, 2024

This PR refactors a a bit to create a specific package under src/components to handle common tasks for shared state async operations.

It also implements a feature to use shared state synchronization hook to a specific data types. On this way you can specify if you want to publish all, sync, and invalidate queries for specific data types (for example only mesh_upgrade data type)

                <UpdateSharedStateBtn
                    updateOnMount={false}
                    ip={info.node_ip}
                    nodeName={name}
                    types={["mesh_wide_upgrade"]}
                />

@selankon selankon merged commit 3073f46 into libremesh:f/v3-candidate Jul 1, 2024
2 checks passed
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.

1 participant