Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

fix(nuxt): allow overriding lower layer composables #10017

Merged
merged 2 commits into from
Jan 14, 2023

Conversation

danielroe
Copy link
Member

πŸ”— Linked issue

resolves nuxt/nuxt#12569

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

This PR adds a priority to composables scanned from directories so that higher priority layers can override lower priority layers.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@danielroe danielroe added bug Something isn't working 🍰 p2-nice-to-have Priority 2: nothing is broken but it's worth addressing labels Jan 9, 2023
@danielroe danielroe requested a review from antfu January 9, 2023 16:01
@danielroe danielroe self-assigned this Jan 9, 2023
@codesandbox
Copy link

codesandbox bot commented Jan 9, 2023

CodeSandbox logoCodeSandbox logoΒ  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders

@danielroe danielroe merged commit bf649fe into main Jan 14, 2023
@danielroe danielroe deleted the fix/override-composables branch January 14, 2023 01:14
@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe mentioned this pull request Jan 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
3.x bug Something isn't working 🍰 p2-nice-to-have Priority 2: nothing is broken but it's worth addressing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Layers: Prefer local composable over extended layers
2 participants