Comments (4)
The famous 1 minute later I realized it's called CollectionMeHook
. The same goes for CollectionAfterRefreshHook
which is called CollectionRefreshHook
in the code. So probably just outdated docs then.
from payload.
@itzaks there is in fact an afterMe
and afterRefresh
hook. Looks like the types are wrongly documented here, though, they are exported as AfterMe
and AfterRefresh
.
from payload.
Yes the types are correct there, but the collections hook are called CollectionMeHook
, CollectionRefreshHook
.
from payload.
No those are entirely different hooks with different types, i.e. there is the me
and refresh
hooks, different from the afterMe
and afterRefresh
hooks. That page documents both. The imported types are correct for the former. The latter has improperly documented imports. I'll leave this comment on your PR, too.
from payload.
Related Issues (20)
- User collection query has limit set to 10 for a single item fetch HOT 1
- Beta Documentation - Rest endpoint (async) missing
- field validate function not translatable
- Routes are not configured properly for globals when creating a custom component in the admin HOT 2
- create-payload-app does not read packageManager value in monorepo
- Searching in a collection and navigating to another collection adds the search value to the new collection
- Doubled / malformed querystring params in Image Edit modal cause errors when saving image properties HOT 5
- Admin dashboard infinite loop in ListView when filtering on relation
- Postgres: Group field with camelCase name cannot save array field
- richtext-lexical slash menu does not render option titles on Safari
- label of document in hasMany relation field displays "Untitled" HOT 2
- Content added in-place in relation field does not respect current locale
- Example server fails when accessing /admin with `Error: Cannot read properties of undefined (reading 'createdAt')` HOT 2
- Time select has wrong background color in dark-mode. HOT 2
- LexicalEditor UploadFeature not showing Extra Fields @beta HOT 2
- "Cannot read properties of null (reading 'id')" in afterChange Hook HOT 1
- Custom Types not working for `getNextRequestI18n({ config })` via generics HOT 1
- Attempted import error: 'reduceFieldsToValues' is not exported from 'payload/shared' (imported as 'reduceFieldsToValues'). HOT 1
- ValidationError missing `data` property in production.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from payload.