-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Rename 'shared load functions' to 'universal load functions' #7952
Comments
Shared always made sense to me. Universal seems a bit weird to me because it's like they can run on anything anywhere, but there's really only two places they're running - the client and the server - so it doesn't seem like it needs such an all encompassing name |
Not to be utterly controversial, but what if we just named them like we do environment variables? Public load and private load. They both follow the same semantics -- public x can be used both server-side and client-side, while private x can only be used server-side. |
Isomorphic seems like it has a clear definition that matches the intent of usage here, so why 🤮? |
It's a pretentious word that means the opposite of what people in the JavaScript world want it to mean. Isomorphism describes different things that have the same form, rather than one thing adapting to multiple surfaces. It's backwards. |
what do you think about omni-side load function or all-side load function? |
@Jerboas86 In that case, I'll give another suggestion in this style: both-side. :) |
Describe the problem
I'm working on some tutorial content, and finding the 'server-only
load
functions' and 'sharedload
functions' terminology a bit ugly and confusing.Describe the proposed solution
load
function —+page.server.js
,+layout.server.js
load
function —+page.js
,+layout.js
Alternatives considered
'Isomorphic' 🤮
Importance
nice to have
Additional Information
No response
The text was updated successfully, but these errors were encountered: