Tag: hint
-
Copying Arrays in TypeScript: Spread vs Deep Linking

TLDR: use the spread operator for arrays of non-object items, otherwise you need to copy the array breaking the deep link of the objects using, for example, JSON.parse and JSON.stringify. If you’re interested in knowing more keep reading! With this post I want to remind (mostly to myself) that there…
-
Essential Logging Techniques with @microsoft/sp-core-library

Introduction Ever you wonder what the Log class of the @microsoft/sp-core-library does? I did, so I tried it a little bit more in order to better understand how it works and what can be done with it. If you need a reference about how to use it you can have…
-
Simplifying localization testing of an SPFx solution in the workbench

Introduction Localization is nowadays one of the most important things when developing a solution. Since not everyone knows English it is worth to support multiple languages. But to test this can require some settings change in our browser or in the account, right? Wrong. There are a couple of ways…
-
Boosting Your SPFx Development with spfx-fast-serve

Introduction: Gulp Serve vs. spfx-fast-serve When developing SharePoint Framework (SPFx) solutions, the traditional gulp serve command is a common way to test your project locally. However, one major downside is the slow build and reload times, especially for larger projects. This is where spfx-fast-serve comes in, providing a faster alternative…
-
Use multiple version of an NPM package

I was wondering how to use two different package version in the same project, maybe you’re wondering why I would do such a thing but picture this: You have a public NPM package and you want to update some of your controls that use an external package, but to avoid…