How to disable source maps in a react app but re-enable for debugging a prod environment

React applications (created via npm "create-react-app") will contain source map files in the build output folder for compiled css and js files. These enable anyone to see readable / debuggable front end code (tsx files) in the developer toolbar. If you need to disable source maps in a PROD environment, but still have the ability … Continue reading How to disable source maps in a react app but re-enable for debugging a prod environment

Handle large JavaScript processing tasks without blocking UI

Some time ago I created an angularjs data table to display large amounts of data (>150,000 objects), with a search field that can perform fuzzy search (using fusejs) against some of the fields at every keystroke, not just when pressing enter. Every keystroke would cause the UI to lock up for a few seconds before … Continue reading Handle large JavaScript processing tasks without blocking UI

PowerApp error when flow triggered by button: InvokerConnectionOverrideFailed

PowerApp error: TestFlow.Run failed: { "code": "InvokerConnectionOverrideFailed", "message": "Failed to parse invoker connections from trigger 'manual' outputs. Exception: Could not find any valid connection for connection reference name 'shared_sharepointonline' in APIM tokens header." } Resolution: When flow is added to PowerApp e.g. a button, the PowerApp stores a "definition" of the flow (i.e. what it … Continue reading PowerApp error when flow triggered by button: InvokerConnectionOverrideFailed

Limit asynchronous queries in javascript – job queue with configurable thread limit

I had a scenario where multiple queries were required to fetch data, first in nodejs fetching from a web service, and later querying SharePoint lists exceeding 100,000 items for display in a data table. I created the QueueRunner javascript class to be able to queue up a large amount of work  (such as 20 large … Continue reading Limit asynchronous queries in javascript – job queue with configurable thread limit

Advanced Search Web Part – using drop down lists instead of plain text boxes

I've wanted to use dropdown lists in the advanced search property restrictions for a long time, so i created a web part to allow it (SearchExtension web part). It can be found on codeplex: http://spsearchextension.codeplex.com/ How it works: On page load the web part locates the advanced search box and passes its client ID to … Continue reading Advanced Search Web Part – using drop down lists instead of plain text boxes