Skip to content

Conversation

@thaqebon
Copy link

This PR refactors the urlDefaults implementation to support dynamic url default values by converting it into a function. This allows defaults to be computed or resolved at runtime, rather than being a fixed object.

Usage

// Passing a function setUrlDefaults(() => usePage().props.urlDefaults); // Still supports passing a plain object setUrlDefaults({ domain: props.initialPage.props.domain });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant