-
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
Great plugin but won't work with server-side rendering #5
Comments
Looks like this is an issue with the scroll-to dependency. Tracking for this is here: Could be worth replacing the dependency as this issue hasn't been addressed for a while now. |
poke |
If you use React, move your function declaration in the componentDidMount method:
|
@monteiz Is there another, more universal solution here? |
@Swivelgames you should first understand how React works: About my attempt to help others here: while I agree that this is far from being an elegant solution, apparently it is the only one that works so far. So feel free to use it, or if you have a better solution to share with us, post it. Regarding "Airbnb standards"...are you really preventing yourself from using a solution because Airbnb said you should not use it? Did I understand correctly? |
@monteiz It sounds like you're a little chagrined. My response was not meant to be insulting or embarrassing, and certainly not to solicit an abundant amount of your energy getting worked up on writing such a response. I merely wanted to point out that your solution was not the ideal solution. I recommend against taking things personally in these scenarios, as it tends to make a place that's usually inviting to friendly discussions about workable solutions and just makes Github a sour place to be. We're all here to do what we love, work on projects, and find the best solutions 😃 My question for a You're welcome to submit a pull request yourself with a usable universal solution and I'm sure @willhoag would be happy to use it. 👍 In regards to "Airbnb standards," you seem to be uninformed. Many efficient teams involved in notable projects within notable companies want to prevent the common mistake of mixing coding styles and not monitoring for best practices which makes most projects difficult to maintain and unworkable in the long term, forcing companies to spend extra money rewriting softwares that accumulate too much tech debt too quickly To prevent this, they adopt a set of standards and policies that they conform to in order to improve maintainability and readability across teams and team members, technology future-proofing, reduce potential tech debt, and improve efficiency. This is much different than the traditional sense of "corporate red-tape and policies," although it can manifest itself that way at some places stuck in their old ways (similar to the way that some teams refuse to adopt any types of standards). When these policies and standards being to hinder the aforementioned, they're set aside an exceptions are made. But it doesn't mean it's always an acceptable solution to code outside of standards just because it might be "too hard" to think up a better solution. 😄 Specifically, If you'd like, I may be able to get a hold of some common standards that you can review for your own personal use on some of your projects. But, as I mentioned before, Airbnb has become an awesome resource for some good, workable standards and packages that don't get in the way of efficiently developing within most teams. It also prevents bad practices in code that may turn into tech debt later on, like continuing to use |
@Swivelgames your problem is that you did not catch the joke. And again, your argument is completely wrong: you are confused between standard and code convention 😂. I tell you the difference:
Airbnb's is not a standard. It is their code convention, that of course you should follow if working for them, but not otherwise 😂 So buddy, if you are afraid to use my workaround, or if you still believe that " If you had time to write such a long comment, I am sure you have time to fix this bug too, otherwise someone here might think that time isn't the only problem you are having with that! |
Please keep conversations constructive please. I'm placing a temporary (1d) ban on all public repo activity as a "cool-down" period. Thank you for understanding. @Swivelgames @monteiz |
For what it's worth, this issue with
Given this, would it be possible to go ahead and maintain a copy of the relevant |
Yep, I like that idea. Should be easy enough to do. Will have a look today. Thanks. 👍 |
Ok, published. 2.0.1 👍 Did a quick eye test with examples/index.html. Should write real tests for this thing at some point. Closing for now. Thanks.
|
I get the error:
Error: Cannot find module 'tween'
The text was updated successfully, but these errors were encountered: