Method getRequestId documentation

Returns a unique ID for a "loader" based on the URL, the data keys and the datatype.


```javascript // The URL is the first part of the key bbn.fn.getRequestId('my/location', {a: 1, b: 2}); // my/location:af27f0e81533ae2bae3c25dea67359f6 bbn.fn.getRequestId('my/other/location', {a: 1, b: 2}); // my/other/location:af27f0e81533ae2bae3c25dea67359f6 ```


```javascript // A change of value will not change the requestId bbn.fn.getRequestId('my/location', {a: 1, b: 3}); // my/location:af27f0e81533ae2bae3c25dea67359f6 // A change of key will bbn.fn.getRequestId('my/location', {a: 1, c: 3}); // my/location:fde97ca7c6c998c911f4ab481a136d5f ```


```javascript // Same with nested object bbn.fn.getRequestId('my/location', {data: {a: 1, b: 3}}); // my/location:a7a58435275054106c4e4c9fb0cea5e5 bbn.fn.getRequestId('my/location', {data: {a: 1, b: 2}}); // my/location:a7a58435275054106c4e4c9fb0cea5e5 bbn.fn.getRequestId('my/location', {data: {a: 1, c: 3}}); // my/location:730da481e30d421afbadf1f1282dabb7 ```

Returns a unique ID for a "loader" based on the URL, the data keys and the datatype. - The routing functions don't allow to send the same request at the same moment, therefore a unique ID is generated to identify them, based on the URL, the keys of the data sent, and the expected returned data type. BBN is a suite of PHP and JS libraries and VueJS components - all open-source!, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.