-
Notifications
You must be signed in to change notification settings - Fork 13
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 load to loadComponent #19
Conversation
…ty problem, and disambiguates from the other function named load
I'm not completely sure about this one because it would be a breaking-change. Is there a specific reason why meteor won't allow a exported function named I agree that the name |
I maybe can load any module, but it's really for loading Svelte Components, so I think that label makes sense. I don't know why Meteor can't export the "load" method - it's probably a bug. If we want to retain backward compatibility, maybe we can export both, and treat "load" as deprecated? I'll check with Meteor about why the load method is not being exported. (I also remembered I have to update the readme if this goes through.) |
I added an issue in the Meteor issue tracker. Let's see what they say. |
Yes, let's figure out what the issue is on Meteor's side before we ask other projects to rename their methods. Since the entry point is |
I agree we should fix it in meteor or svelte-meteor. I half asked them to rename the function because I named it load originally, and feel it was a mistake. O.o |
This looks like a Svelte bug (not related to Meteor or |
Hmm, I must not have noticed due to a problem I was having updating passed svelte 3.6.10 (which seems to have been caused by a problem in meteor core). When I figured that out, the was the very next issue I had to fix.
In favor of renaming:
In favor of not renaming it:
Suggested workaround - rename it in code and readme to |
I just tried out a few versions using the Svelte REPL. The bug was introduced in version 3.13.0 (released two weeks ago). |
That's good to know. If the argument for changing it is not strong enough, please close the PR. Thanks! |
Fixes a meteor module name compatibility problem, and disambiguates from the other function named load.
For some reason, meteor's build system will not export a function named "load". It should probably have been called "loadComponent" from the start anyway.