Given $f(x,y) = xy^2/(x^2+y^2)$, if $x^2 + y^2 > 0$ else $f(x,y) = 0$ where $x(t)=t, y(t)=t$
If we apply chain rule: $f(t) = t^3/(2t^2) = t/2$ then $f'(t)=1/2$
If we try to calculate partial derivatives:
$f'x(x,y) = y^2(y^2-x^2)/(x^2 + y^2)$ then $f'x(0,0)=0$
and
$f'y(x,y) = 2x^3y/(x^2 + y^2)$ then $f'y(0,0)=0$

The partial derivatives are \begin{align} f'_x(x,y)&=\frac{y^2(x^2+y^2)-xy^2\cdot2x}{(x^2+y^2)^2}=\frac{y^2(y^2-x^2)}{(x^2+y^2)^2} \\[6px] f'_y(x,y)&=\frac{2xy(x^2+y^2)-xy^2\cdot2y}{(x^2+y^2)^2}=\frac{2xy^3}{(x^2+y^2)^2} \end{align} but these expressions are undefined at $(0,0)$. You get, for $t\ne0$, $$ f'_x(t,t)=0,\qquad f'_y(t,t)=\frac{2t^4}{4t^4}=\frac{1}{2} $$ but it makes no sense to compute this for $t=0$.
The function $\varphi(t)=f(t,t)$ for $t\ne0$ and $\varphi(0)=0$ is differentiable, but the function $f$ is not differentiable at $(0,0)$. That's not a strange fact.
The partial derivatives exist at $(0,0)$ and they are zero (thanks to Hans Lundmark for poking me to observe this), but this cannot be used for computing the derivative of $\varphi$ at $0$. We might use the directional derivative, though. $$ \lim_{h\to0}\frac{f(0+h,0+h)-f(0,0)}{h}=\lim_{h\to0}\frac{h^3}{2h^3}=\frac{1}{2} $$ By the way, this proves that $f$ is not differentiable at $(0,0)$.