meteor / meteor/validated-method

Mixins execute backwards

Open
#57 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
193
Forks
29
PR merge metrics
No merged PRs in 30d

Description

In my application I do something like this

`mixins: [LoggedInMixin, UserIsBlaBla]`

The second mixin in the array depends on something in Meteor.user() so we need to make sure the user is logged in first. But, unexpectedly, mixins will run in reverse order so I have to reverse the array:

`mixins: [UserIsBlaBla, LoggedInMixin]`

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file or test is named in the issue. Start by locating the mixin execution entry point in the repository and reproduce the example with two dependent mixins. Done means mixins run in the declared array order, with a regression test covering that order.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.